-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitlab-ci.yml
62 lines (55 loc) · 1.52 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
image: docker.io/smillerc/gfortran-dev:latest
# Set the thread count for OpenMP runs
variables:
OMP_NUM_THREADS: 2
HDF5_DISABLE_VERSION_CHECK: 2
before_script:
- /bin/bash
- eval `spack load --sh hdf5`
- pip install fypp "dask[complete]" --user
stages:
- build
- test
debug:
stage: build
script:
- mkdir -p debug
- cd debug
- cmake .. -DCMAKE_BUILD_TYPE="Debug" -DENABLE_COARRAY=ON -DENABLE_TESTING=ON -DUSE_OPENMP_SIMD=ON
- make -j
- ctest --output-on-failure
release:
stage: build
script:
- mkdir -p release
- cd release
- pwd
- cmake .. -DCMAKE_BUILD_TYPE="Release" -DENABLE_COARRAY=ON -DENABLE_TESTING=OFF -DUSE_OPENMP_SIMD=ON
- make -j
- ctest --output-on-failure
integration_tests:
stage: test
script:
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE="Release" -DENABLE_COARRAY=ON -DENABLE_TESTING=OFF -DUSE_OPENMP_SIMD=ON
- make -j
- cd ../tests/integrated
- ./run_integration_tests.sh gnu
- ls test_results
artifacts:
paths:
- /builds/smil/cato/tests/integrated/test_results
single_debug_run:
stage: test
script:
- cd tests/integrated/sedov/
- cmake ../../.. -DCMAKE_BUILD_TYPE="Debug" -DENABLE_COARRAY=ON -DENABLE_TESTING=ON -DUSE_OPENMP_SIMD=ON
- make -j
- python3 generate_ic.py
- ./bin/cato.x input.ini
- python3 view_results.py
- cp sedov_2d_results.png sedov_2d_debug_results.png
artifacts:
paths:
- /builds/smil/cato/tests/integrated/sedov/sedov_2d_debug_results.png