-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
91 lines (81 loc) · 3.08 KB
/
.gitlab-ci.yml
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
image: giomasce/testenv
variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: "3"
before_script:
- cat /proc/cpuinfo
- cat /proc/meminfo
- apt-get update
- apt-get install -y --no-upgrade eatmydata
stages:
- build
- test
build:
stage: build
script:
- eatmydata apt-get install -y --no-upgrade build-essential libz3-dev libmicrohttpd-dev qt5-default libboost-all-dev binutils-dev pkg-config wget git
- sed -i -e 's|^USE_QT = .*$|USE_QT = true|' mmpp.pro
- sed -i -e 's|^USE_MICROHTTPD = .*$|USE_MICROHTTPD = true|' mmpp.pro
- sed -i -e 's|^USE_BEAST = .*$|USE_BEAST = true|' mmpp.pro
- sed -i -e 's|^USE_Z3 = .*$|USE_Z3 = true|' mmpp.pro
- mkdir build
- cd build
- qmake ..
- make -j $(nproc)
- cd ..
- mkdir artifacts
- cp build/mmpp artifacts
- strip artifacts/mmpp
artifacts:
paths:
- artifacts
tsc:
stage: build
script:
- eatmydata apt-get install -y --no-upgrade node-typescript
- tsc -p resources/static/ts
scala:
stage: build
script:
- eatmydata apt-get install -y --no-upgrade scala
- cd gapt
- ./download_gapt.sh
- ./compile.sh
artifacts:
paths:
- gapt/gapt-2.14.jar
- gapt/*.class
test:
stage: test
script:
- eatmydata apt-get install -y --no-upgrade build-essential libz3-dev libmicrohttpd-dev qt5-default libboost-all-dev binutils-dev wget
- wget -q -O resources/set.mm https://github.com/giomasce/set.mm/raw/develop/set.mm
- time ./artifacts/mmpp test
verify_all:
stage: test
script:
- eatmydata apt-get install -y --no-upgrade build-essential libz3-dev libmicrohttpd-dev qt5-default libboost-all-dev binutils-dev git
- git clone https://github.com/giomasce/metamath-test.git resources/metamath-test
- time ./artifacts/mmpp verify_all
gapt:
stage: test
script:
- eatmydata apt-get install -y --no-upgrade build-essential libz3-dev libmicrohttpd-dev qt5-default libboost-all-dev binutils-dev wget git scala prover9
- wget -q -O resources/set.mm https://github.com/giomasce/set.mm/raw/develop/set.mm
- cd gapt
- "time ./run.sh ':- f | -f' > gapt1"
- "time ./run.sh ':- ?x (f(x) -> !y f(y))' > gapt2"
- "time ./run.sh '!x f(x) -> g :- ?x (f(x) -> g)' > gapt3"
- "time ./run.sh '(f -> g) | (f -> h) :- f -> (g | h)' > gapt4"
- "time ./run.sh '!x !y ((f(x)=f(y))->(x=y)) :- !x !y ((f(f(x))=f(f(y)))->x=y)' > gapt5"
- "time ./run.sh '!X !Y !Z (mult(X, mult(Y, Z))=mult(mult(X, Y), Z)), !X (mult(X, e)=X) :- (!X (mult(X, X)=e))->(!X !Y (mult(X, Y)=mult(Y, X)))' > gapt6"
- "time ./run.sh ':- ((?x !y (f(x) <-> f(y))) <-> ((?x (g(x)) <-> (!y g(y))))) <-> ((?x !y (g(x) <-> g(y))) <-> ((?x (f(x)) <-> (!y f(y)))))' > gapt7"
- cd ..
- "time ./artifacts/mmpp read_gapt < gapt/gapt1"
- "time ./artifacts/mmpp read_gapt < gapt/gapt2"
- "time ./artifacts/mmpp read_gapt < gapt/gapt3"
- "time ./artifacts/mmpp read_gapt < gapt/gapt4"
- "time ./artifacts/mmpp read_gapt < gapt/gapt5"
- "time ./artifacts/mmpp read_gapt < gapt/gapt6"
- "time ./artifacts/mmpp read_gapt < gapt/gapt7"