-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
131 lines (120 loc) · 2.83 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
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
stages:
- build
- test
- test_part_2
- test_part_3
docker-build-master:
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
test1:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test
script:
- rm -rf .git
- git clone https://github.com/nimble-code/Spin.git
- cd Spin/Examples
- spin hello.pml
- spin -T hello.pml
test2:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test
script:
- rm -rf .git
- git clone https://github.com/nimble-code/Spin.git
- cd Spin/Examples
- spin -a loops.pml
- cc -DNOREDUCE -o pan pan.c
- ./pan
artifacts:
paths:
- Spin/Examples/pan
test3:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test_part_2
needs:
- job: test2
artifacts: true
script:
- cd Spin/Examples
- ./pan -a
artifacts:
paths:
- Spin/Examples/loops.pml.trail
test4:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test_part_3
needs:
- job: test3
artifacts: true
script:
- git clone https://github.com/nimble-code/Spin.git tmp
- mv tmp/Examples/loops.pml Spin/Examples/loops.pml
- rm -rf tmp
- cd Spin/Examples
- spin -t -p loops.pml
test5:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test
script:
- rm -rf .git
- git clone https://github.com/nimble-code/Spin.git
- cd Spin/Examples
- spin -a loops.pml
- cc -DNP -DNOREDUCE -o pan pan.c
- ./pan -l
test6-prereq:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test
script:
- rm -rf .git
- git clone https://github.com/nimble-code/Spin.git
- cd Spin/Examples
- spin -a leader0.pml
artifacts:
paths:
- Spin/Examples/pan.c
test6a:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test_part_2
needs:
- job: test6-prereq
artifacts: true
script:
- cd Spin/Examples
- cc -DSAFETY -DNOREDUCE -DNOCLAIM -o pan pan.c
- ./pan -c0 -n
test6b:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test_part_2
needs:
- job: test6-prereq
artifacts: true
script:
- cd Spin/Examples
- cc -DSAFETY -DNOCLAIM -o pan pan.c
- ./pan -c0 -n
test7:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test
script:
- rm -rf .git
- git clone https://github.com/nimble-code/Spin.git
- cd Spin/Examples
- spin -o6 -p -g -u10000 priorities.pml
test8:
image: registry.gitlab.com/smeetsee/it/spin-docker
stage: test
script:
- rm -rf .git
- git clone https://github.com/nimble-code/Spin.git
- cd Spin/Examples
- spin -f "[] ( p U ( <> q ))"