-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
175 lines (155 loc) · 4.94 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
175 lines (155 loc) · 4.94 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
###################### Global Config ######################
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
- if: "$CI_COMMIT_BRANCH"
stages:
- build
###################### Rules and Scripts ##################
.not_in_wip_branches:
rules:
- if: ($CI_COMMIT_BRANCH !~ /^wip-.*$/) || ($CI_PIPELINE_SOURCE == "merge_request_event")
.only_in_wip_branches:
rules:
- if: ($CI_COMMIT_BRANCH =~ /^wip-.*$/) && ($CI_PIPELINE_SOURCE != "merge_request_event")
.env-setup:
script:
- getconf _NPROCESSORS_ONLN
- "[ -f /sys/fs/cgroup/cpu.max ] && cat /sys/fs/cgroup/cpu.max"
- "[ -f /sys/fs/cgroup/cpuset.cpus ] && cat /sys/fs/cgroup/cpuset.cpus"
- "[ -f /sys/fs/cgroup/cpuset.cpus.effective ] && cat /sys/fs/cgroup/cpuset.cpus.effective"
- "[ -f /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us"
- "[ -f /sys/fs/cgroup/cpu/cpu.cfs_period_us ] && cat /sys/fs/cgroup/cpu/cpu.cfs_period_us"
- export MAXPAR=`getconf _NPROCESSORS_ONLN`
- echo "MAXPAR=${MAXPAR}"
.build-common:
stage: build
script:
- !reference [.env-setup, script]
- opam pin add -n -y -k path rocq-prosa .
- opam install -y -v -j ${MAXPAR} rocq-prosa
- opam pin add -n -y -k path rocq-prosa-refinements .
- opam install -y -v -j ${MAXPAR} rocq-prosa-refinements
.preferred-stable-version:
image: registry.mpi-sws.org/mathcomp-for-prosa:2.5.0-rocq-prover-9.0.0-rocq-core-9.1.0
.build:
image: registry.mpi-sws.org/mathcomp-for-prosa:${CI_JOB_NAME}
extends: .build-common
.build-and-test-POET:
extends: .build
script:
- git clone https://gitlab.mpi-sws.org/RT-PROOFS/POET.git -b POET-for-Prosa-CI-v0.7-prime /tmp/POET
- !reference [.build-common, script]
- mv /tmp/POET .
- cd POET
- >-
for WORKLOAD in examples/*.yaml;
do
CERT=certs/cert-for-`basename $WORKLOAD`;
echo; echo; echo;
echo "==================";
echo "Testing $WORKLOAD:";
mkdir -p $CERT;
time ./poet -v -o $CERT -j ${MAXPAR} -s $WORKLOAD;
done;
.make-html:
script:
- make html -j ${MAXPAR}
- mv html with-proofs
- make gallinahtml -j ${MAXPAR}
- mv html without-proofs
- make htmlpretty -j ${MAXPAR} 2> /tmp/rocqdoc-warnings.txt
- '[ ! -s /tmp/rocqdoc-warnings.txt ] || (echo "Please fix all rocqdoc warnings:" && cat /tmp/rocqdoc-warnings.txt && false)'
- mv html pretty
###################### The Jobs ######################
2.5.0-rocq-prover-9.0.0-rocq-core-9.1.0:
extends:
- .build
- .not_in_wip_branches
POET:
extends:
- .build-and-test-POET
- .preferred-stable-version
- .not_in_wip_branches
compile-and-doc:
stage: build
extends:
- .only_in_wip_branches
- .preferred-stable-version
script:
- !reference [.env-setup, script]
- make -j ${MAXPAR} all
- !reference [.make-html, script]
artifacts:
name: "prosa-spec-$CI_COMMIT_REF_NAME"
paths:
- "with-proofs/"
- "without-proofs/"
- "pretty/"
expire_in: 1 week
compile-and-doc-and-validate:
stage: build
extends:
- .not_in_wip_branches
- .preferred-stable-version
script:
- !reference [.env-setup, script]
- make -j ${MAXPAR} all 2>&1 | tee coqc-messages.txt
- if grep -q Warning coqc-messages.txt; then (echo "Please fix all Coq warnings:"; echo "--"; grep -B1 Warning coqc-messages.txt; exit 1); fi
- !reference [.make-html, script]
- scripts/check-axiom-free.sh results
##### `make validate` disabled because of https://github.com/LPCIC/coq-elpi/issues/677 and https://github.com/coq/coq/issues/17345
# - make validate 2>&1 | tee validation-results.txt
# - scripts/check-validation-output.sh --accept-proof-irrelevance validation-results.txt
artifacts:
name: "prosa-spec-$CI_COMMIT_REF_NAME"
paths:
- "with-proofs/"
- "without-proofs/"
- "pretty/"
expire_in: 1 week
mangle-names:
stage: build
extends:
- .not_in_wip_branches
- .preferred-stable-version
script:
- !reference [.env-setup, script]
- make -j ${MAXPAR} mangle-names
proof-length:
stage: build
image: python:3
script:
- make proof-length
spell-check:
extends:
- .not_in_wip_branches
stage: build
image: registry.mpi-sws.org/aspell-ci:2023-03
script:
- make spell
lint:
extends:
- .not_in_wip_branches
stage: build
image: python:3
script:
- make lint
# Disabled until alectryon gains support for Rocq Prover 9.0
# See https://github.com/cpitclaudel/alectryon/issues/104
# proof-state:
# extends:
# - .not_in_wip_branches
# stage: build
# image: registry.mpi-sws.org/alectryon-ci:2.4.0-rocq-prover-9.0
# script:
# - eval $(opam env)
# - make -j ${MAXPAR} all
# - make -j ${MAXPAR} alectryon
# artifacts:
# name: "prosa-proof-state-$CI_COMMIT_REF_NAME"
# paths:
# - "html-alectryon/"
# expire_in: 1 week