forked from StanfordLegion/legion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
236 lines (208 loc) · 5.88 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
###
### Variables
###
# Global variables (will be set in every job):
variables:
WARN_AS_ERROR: "1"
# MAKEFLAGS: "-s"
REALM_BACKTRACE: "1"
REALM_SYNTHETIC_CORE_MAP: "" # Disable Realm thread pinning.
# Local variables (included on a case-by-case basis in each job):
.gcc48: &gcc48
CXX: "g++-4.8"
.gcc49: &gcc49
CXX: "g++-4.9"
.gcc5: &gcc5
CXX: "g++-5"
.gcc6: &gcc6
CXX: "g++-6"
.clang35: &clang35
CXX: "clang++-3.5"
.clang38: &clang38
CXX: "clang++-3.8"
.terra35: &terra35
LLVM_CONFIG: "llvm-config-3.5"
TERRA_DIR: "/usr/local/terra35"
.terra38: &terra38
LLVM_CONFIG: "llvm-config-3.8"
TERRA_DIR: "/usr/local/terra38"
.debug: &debug
DEBUG: "1"
.release: &release
DEBUG: "0"
.cxx98_normal: &cxx98_normal
CC_FLAGS: "-std=c++98"
.cxx98_checks: &cxx98_checks
CC_FLAGS: "-std=c++98 -DPRIVILEGE_CHECKS -DBOUNDS_CHECKS"
.cxx98_spy: &cxx98_spy
CC_FLAGS: "-std=c++98 -DLEGION_SPY"
USE_SPY: "1"
.cxx11_normal: &cxx11_normal
CC_FLAGS: "-std=c++11"
.cxx98_32bit_normal: &cxx98_32bit_normal
CC_FLAGS: "-std=c++98 -m32"
LD_FLAGS: "-m32"
MARCH: "i686"
.cmake: &cmake
USE_CMAKE: "1"
.skip_regent: &skip_regent
TEST_REGENT: "0"
###
### Setup
###
# These commands will run before each job.
before_script:
- uname -a
- |
if [[ "$(uname)" = "Linux" ]]; then
export THREADS=$(nproc --all)
elif [[ "$(uname)" = "Darwin" ]]; then
export THREADS=$(sysctl -n hw.ncpu)
else
echo "Unknown platform. Setting THREADS to 1."
export THREADS=1
fi
# - |
# if [[ "$(uname)" = "Darwin" ]]; then
# brew update
# brew install pypy homebrew/versions/llvm35
# fi
- |
if [[ "$USE_GASNET" -eq 1 ]]; then
export CONDUIT=mpi
export GASNET_ROOT="$PWD/gasnet/release"
export LAUNCHER="mpirun -n 2 -x TERRA_PATH -x INCLUDE_PATH -x LD_LIBRARY_PATH -x LG_RT_DIR"
unset WARN_AS_ERROR
git clone https://github.com/StanfordLegion/gasnet.git gasnet
pushd gasnet
make -j$THREADS
popd
fi
###
### Tags
###
.linux: &linux
tags:
- linux
.macos: &macos
tags:
- macos
# For compute-heavy tests:
.linux_compute: &linux_compute
tags:
- linux
- compute
###
### Docker Image
###
# Each job will run in a fresh container with this image.
.image: &image
image: stanfordlegion/gitlab-ci # i.e. https://hub.docker.com/r/stanfordlegion/gitlab-ci/
###
### Tests
###
# Each job will run this set of tests.
.tests: &tests
script:
- ./test.py
# Some additional tests are only run on certain configurations.
.external_tests: &external_tests
script:
- |
if [[ -n $GITLAB_DEPLOY_KEY ]]; then
eval $(ssh-agent -s)
ssh-add <(echo "$GITLAB_DEPLOY_KEY")
mkdir -p ~/.ssh
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
fi
- ./test.py --test=external --test=private
###
### Jobs
###
# Each item below defines a job.
# There are two tiers of tests.
# 1. Full test suite (small number of compilers).
# 2. Minimal test suite (other compilers).
# Run the full test suite on GCC 4.9 and Clang 3.5.
# Linux with GCC 4.9
linux_gcc49_terra35_cxx98_release:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra35, *release, *cxx98_normal]
linux_gcc49_terra35_cxx98_debug_checks:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra35, *debug, *cxx98_checks]
linux_gcc49_terra35_cxx98_debug_spy:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra35, *debug, *cxx98_spy]
linux_gcc49_terra35_cxx11_release:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra35, *release, *cxx11_normal]
linux_gcc49_terra35_cxx98_32bit_debug_noregent:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra35, *debug, *cxx98_32bit_normal, *skip_regent]
linux_gcc49_terra35_cxx98_debug_checks_cmake_noregent:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc49, *terra35, *debug, *cxx98_checks, *cmake, *skip_regent]
linux_gcc49_terra35_cxx98_debug_checks_external:
<<: [*linux_compute, *image, *external_tests]
variables:
<<: [*gcc49, *terra35, *debug, *cxx98_checks]
# Linux with Clang 3.5
linux_clang35_terra35_cxx98_release:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *release, *cxx98_normal]
linux_clang35_terra35_cxx98_debug_checks:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *debug, *cxx98_checks]
linux_clang35_terra35_cxx98_debug_spy:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *debug, *cxx98_spy]
linux_clang35_terra35_cxx11_release:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *release, *cxx11_normal]
linux_clang35_terra35_cxx98_32bit_debug_noregent:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *debug, *cxx98_32bit_normal, *skip_regent]
linux_clang35_terra35_cxx98_debug_checks_cmake_noregent:
<<: [*linux, *image, *tests]
variables:
<<: [*clang35, *terra35, *debug, *cxx98_checks, *cmake, *skip_regent]
linux_clang35_terra35_cxx98_debug_checks_external:
<<: [*linux_compute, *image, *external_tests]
variables:
<<: [*clang35, *terra35, *debug, *cxx98_checks]
# # macOS with Clang 3.5
# macos_clang35_cxx98_debug_checks:
# <<: [*macos, *tests]
# variables:
# <<: [*clang35, *debug, *cxx98_checks]
# Run minimal tests on other compilers.
# Linux with GCC 4.8, 5, 6
linux_gcc48_terra35_cxx98_debug_checks:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc48, *terra35, *debug, *cxx98_checks]
linux_gcc5_terra35_cxx98_debug_checks:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc5, *terra35, *debug, *cxx98_checks]
linux_gcc6_terra35_cxx98_debug_checks:
<<: [*linux, *image, *tests]
variables:
<<: [*gcc6, *terra35, *debug, *cxx98_checks]
# Linux with Clang 3.8
linux_clang38_terra38_cxx98_debug_checks:
<<: [*linux, *image, *tests]
variables:
<<: [*clang38, *terra38, *debug, *cxx98_checks]