-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
177 lines (156 loc) · 5.13 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
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
image: registry.git.rwth-aachen.de/ths/smt/smtrat/ci:latest
#It is tried to download a carl-branch with the same name.
#If it does not exist, the newest version of the carl-development branch is pulled
#Change the SMTRAT_STRATEGY to what is needed in your own branch!
#Different cache for each job and branch -> first pipeline in a new branch can take a long time
cache:
key: ${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}
paths:
- build/resources/
policy: pull-push
variables:
COMPILE_JOBS: 6
SMTRAT_STRATEGY:
value: "Default"
description: "Enter the strategy with which you want to run the pipeline."
stages:
- build
- test
- documentation
# development
build-gcc12-dev:
stage: build
script:
- export CC=/usr/bin/gcc-12 && export CXX=/usr/bin/g++-12
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=dev MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- build/
- cmake/
- src/
expire_in: 1 week
only:
- development
.build-gcc11-dev:
stage: build
script:
- export CC=/usr/bin/gcc-11 && export CXX=/usr/bin/g++-11
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=dev MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
only:
- development
build-clang14-dev:
stage: build
script:
- export CC=/usr/bin/clang-14 && export CXX=/usr/bin/clang++-14
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=dev MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
# artifacts:
# name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
# paths:
# - build/
# - cmake/
# - src/
# expire_in: 1 week
only:
- development
.build-clang13-dev:
stage: build
script:
- export CC=/usr/bin/clang-13 && export CXX=/usr/bin/clang++-13
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=dev MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
only:
- development
test-gcc-dev:
dependencies: [build-gcc12-dev]
stage: test
script:
- cd build && make test
only:
- development
# master
build-gcc12:
stage: build
script:
- export CC=/usr/bin/gcc-12 && export CXX=/usr/bin/g++-12
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=all MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- build/
- cmake/
- src/
expire_in: 1 week
only:
- master
build-clang14:
stage: build
script:
- export CC=/usr/bin/clang-14 && export CXX=/usr/bin/clang++-14
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=all MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
only:
- master
test-gcc:
dependencies: [build-gcc12]
stage: test
script:
- cd build && make test
only:
- master
.test-clang:
dependencies: [build-clang14]
stage: test
script:
- cd build && make test
only:
- master
docs:
stage: documentation
cache: {}
script:
#- TASK=getCarl BRANCH_NAME=development JOB_NAME="build-gcc12" TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh #get carl for doxygen dependency
- MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} TASK=documentation source .ci/build.sh
only:
- master
# other branches
build-gcc12-other:
stage: build
script:
- export CC=/usr/bin/gcc-12 && export CXX=/usr/bin/g++-12
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=dev MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- build/
- cmake/
- src/
expire_in: 1 week
except:
- development
- master
when: manual
build-clang14-other:
stage: build
script:
- export CC=/usr/bin/clang-14 && export CXX=/usr/bin/clang++-14
- TASK=getCarl BRANCH_NAME=${CI_COMMIT_BRANCH} JOB_NAME=${CI_JOB_NAME} TOKEN=${CARL_READONLY_TOKEN} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
- TASK=dev MAKE_PARALLEL=-j${COMPILE_JOBS} STRATEGY=${SMTRAT_STRATEGY} source .ci/build.sh
except:
- development
- master
when: manual
test-gcc-other:
dependencies: [build-gcc12-other]
stage: test
script:
- cd build && make test
except:
- development
- master
when: manual