forked from LLNL/variorum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
187 lines (182 loc) · 5.33 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
stages:
- format
- build
build-quartz-format:
tags:
- batch
- quartz
stage: format
script:
- wget https://sourceforge.net/projects/astyle/files/astyle/astyle%203.1/astyle_3.1_linux.tar.gz
- tar -xf astyle_3.1_linux.tar.gz
- cd astyle/build/gcc && make
- export PATH="${PWD}/bin:${PATH}"
- cd -
- echo -e "PWD:" ${PWD}
- ./scripts/astyle-format.sh
- err=$?
- if [ $err -eq 0 ]; then exit 0; else echo -e "Astyle formatting needed!"; exit 1; fi
build-quartz:
tags:
- batch
- quartz
stage: build
script:
- export HOSTNAME=`hostname`
- echo -e "Hostname:" ${HOSTNAME}
- groups
- mkdir build-gitlab-quartz && mkdir install-gitlab-quartz
- cd build-gitlab-quartz
- export HOST_CONFIG=`ls ../host-configs/[email protected]`
- echo -e "HOST_CONFIG:" ${HOST_CONFIG}
- echo -e "PWD:" ${PWD}
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-quartz -DBUILD_TESTS=ON -DENABLE_WARNINGS=ON ../src
- make VERBOSE=1
- make install
- env CTEST_OUTPUT_ON_FAILURE=1 make test
- cd ..
- echo -e "PWD:" ${PWD}
- which cmake
- cmake --version
- cd install-gitlab-quartz/examples/using-with-cmake/c
- echo -e "PWD:" ${PWD}
- mkdir _test_build
- cd _test_build
- cmake ../
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../../using-with-make/c
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/cpp
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/fortran
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./ep.W.x
build-lassen-cpu:
tags:
- batch
- lassen
stage: build
script:
- export HOSTNAME=`hostname`
- echo -e "Hostname:" ${HOSTNAME}
- groups
- mkdir build-gitlab-lassen-cpu && mkdir install-gitlab-lassen-cpu
- cd build-gitlab-lassen-cpu
- export HOST_CONFIG=`ls ../host-configs/[email protected]`
- echo -e "HOST_CONFIG:" ${HOST_CONFIG}
- echo -e "PWD:" ${PWD}
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-lassen-cpu -DENABLE_WARNINGS=ON ../src
- make VERBOSE=1
- make install
- env CTEST_OUTPUT_ON_FAILURE=1 make test
- cd ..
- echo -e "PWD:" ${PWD}
- which cmake
- cmake --version
- cd install-gitlab-lassen-cpu/examples/using-with-cmake/c
- echo -e "PWD:" ${PWD}
- mkdir _test_build
- cd _test_build
- cmake ../
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../../using-with-make/c
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/cpp
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/fortran
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./ep.W.x
build-lassen-gpu:
tags:
- batch
- lassen
stage: build
script:
- export HOSTNAME=`hostname`
- echo -e "Hostname:" ${HOSTNAME}
- groups
- mkdir build-gitlab-lassen-gpu && mkdir install-gitlab-lassen-gpu
- cd build-gitlab-lassen-gpu
- export HOST_CONFIG=`ls ../host-configs/[email protected]@10.1.243.cmake`
- echo -e "HOST_CONFIG:" ${HOST_CONFIG}
- echo -e "PWD:" ${PWD}
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-lassen-gpu -DENABLE_WARNINGS=ON ../src
- make VERBOSE=1
- make install
- env CTEST_OUTPUT_ON_FAILURE=1 make test
- cd ..
- echo -e "PWD:" ${PWD}
- which cmake
- cmake --version
- cd install-gitlab-lassen-gpu/examples/using-with-cmake/c
- echo -e "PWD:" ${PWD}
- mkdir _test_build
- cd _test_build
- cmake ../
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../../using-with-make/c
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/cpp
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/fortran
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./ep.W.x
build-catalyst:
tags:
- batch
- catalyst
stage: build
script:
- export HOSTNAME=`hostname`
- echo -e "Hostname:" ${HOSTNAME}
- groups
- mkdir build-gitlab-catalyst && mkdir install-gitlab-catalyst
- cd build-gitlab-catalyst
- export HOST_CONFIG=`ls ../host-configs/[email protected]`
- echo -e "HOST_CONFIG:" ${HOST_CONFIG}
- echo -e "PWD:" ${PWD}
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-catalyst -DBUILD_TESTS=ON -DENABLE_WARNINGS=ON ../src
- make VERBOSE=1
- make install
- env CTEST_OUTPUT_ON_FAILURE=1 make test
- cd ..
- echo -e "PWD:" ${PWD}
- which cmake
- cmake --version
- cd install-gitlab-catalyst/examples/using-with-cmake/c
- echo -e "PWD:" ${PWD}
- mkdir _test_build
- cd _test_build
- cmake ../
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../../using-with-make/c
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/cpp
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./variorum-print-power-example
- cd ../../using-with-make/fortran
- echo -e "PWD:" ${PWD}
- make VERBOSE=1
- ./ep.W.x