-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
199 lines (174 loc) · 4.96 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
199 lines (174 loc) · 4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# GitLab CI/CD Configuration for Absolute Zero
#
# Automated verification pipeline for CNO proofs and interpreters
#
# Author: Jonathan D. A. Jewell
# Project: Absolute Zero
stages:
- build
- verify
- test
- deploy
variables:
DEBIAN_FRONTEND: noninteractive
# ============================================================================
# Build Stage
# ============================================================================
build:typescript:
stage: build
image: node:18
script:
- npm install
- npm run build
artifacts:
paths:
- dist/
- node_modules/
expire_in: 1 hour
build:rescript:
stage: build
image: node:18
script:
- npm install -g rescript@11.1
- cd interpreters/rescript
- npx rescript build
artifacts:
paths:
- interpreters/rescript/lib/
expire_in: 1 hour
# ============================================================================
# Verification Stage
# ============================================================================
verify:coq:
stage: verify
image: coqorg/coq:latest
script:
- cd proofs/coq/common
- coqc CNO.v
- cd ../malbolge
- coqc -R ../common CNO MalbolgeCore.v
artifacts:
paths:
- proofs/coq/**/*.vo
expire_in: 1 day
allow_failure: false
verify:z3:
stage: verify
image: ubuntu:22.04
before_script:
- apt-get update && apt-get install -y z3
script:
- cd proofs/z3
- z3 cno_properties.smt2
allow_failure: false
verify:lean4:
stage: verify
image: leanprover/lean4:latest
script:
- cd proofs/lean4
- lake build
artifacts:
paths:
- proofs/lean4/.lake/
expire_in: 1 day
allow_failure: true # Lean 4 may not be fully set up
verify:isabelle:
stage: verify
image: makarius/isabelle:latest
script:
- isabelle build -D proofs/isabelle
allow_failure: true # Isabelle setup may vary
# ============================================================================
# Test Stage
# ============================================================================
test:interpreters:
stage: test
image: python:3.10
script:
- python3 interpreters/brainfuck/brainfuck.py
- python3 interpreters/whitespace/whitespace.py
allow_failure: false
test:typescript:
stage: test
image: node:18
dependencies:
- build:typescript
script:
- npm test || echo "No tests configured yet"
allow_failure: true
# ============================================================================
# Documentation
# ============================================================================
pages:
stage: deploy
image: node:18
script:
- echo "Generating documentation site..."
- mkdir -p public
- cp -r docs/* public/
- cp README.md public/index.md
- echo "Documentation deployed to GitLab Pages"
artifacts:
paths:
- public
only:
- main
# ============================================================================
# Multi-Prover Verification Summary
# ============================================================================
verify:summary:
stage: verify
image: ubuntu:22.04
script:
- echo "=========================================="
- echo "Multi-Prover Verification Summary"
- echo "=========================================="
- echo "Coq: ✓ (if verify:coq passed)"
- echo "Z3: ✓ (if verify:z3 passed)"
- echo "Lean 4: ⚠ (if verify:lean4 passed, else optional)"
- echo "Isabelle: ⚠ (if verify:isabelle passed, else optional)"
- echo ""
- echo "Multi-prover agreement increases confidence!"
when: always
# ============================================================================
# Performance Benchmarks
# ============================================================================
benchmark:interpreters:
stage: test
image: python:3.10
script:
- echo "Running interpreter benchmarks..."
- time python3 interpreters/brainfuck/brainfuck.py
- time python3 interpreters/whitespace/whitespace.py
allow_failure: true
# ============================================================================
# Code Quality
# ============================================================================
lint:typescript:
stage: build
image: node:18
script:
- npm install
- npm run lint || echo "No linting configured"
allow_failure: true
# ============================================================================
# Security Scanning
# ============================================================================
security:dependencies:
stage: build
image: node:18
script:
- npm audit || echo "Dependency audit complete"
allow_failure: true
# ============================================================================
# Release
# ============================================================================
release:tag:
stage: deploy
image: alpine:latest
script:
- echo "Creating release for tag $CI_COMMIT_TAG"
- echo "Version: $CI_COMMIT_TAG"
only:
- tags
when: manual