-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
75 lines (65 loc) · 1.81 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
GNU build:
image: registry.git.rwth-aachen.de/luechow-group/inpsights/gnu:7.3.0
stage: build
before_script:
- export CXX=/usr/bin/g++
script:
- mkdir -p cmake-build-debug-gnu
- cd cmake-build-debug-gnu
- cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_GUI=OFF
- cmake --build . --target inPsightsTests -- -j2
cache:
key: "$CI_COMMIT_REF_SLUG-GNU"
paths:
- cmake-build-debug-gnu/
policy: pull-push
Intel build:
image: registry.git.rwth-aachen.de/luechow-group/inpsights/intel:19.0.1.144
stage: build
before_script:
- source /opt/intel/parallel_studio_xe_2019/psxevars.sh intel64
- export CXX=/opt/intel/bin/icpc
- export MKLROOT=/opt/intel/mkl
script:
- mkdir -p cmake-build-debug-intel
- cd cmake-build-debug-intel
- cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_GUI=OFF
- cmake --build . --target inPsightsTests -- -j2
cache:
key: "$CI_COMMIT_REF_SLUG-Intel"
paths:
- cmake-build-debug-intel/
policy: pull-push
GNU test:
image: registry.git.rwth-aachen.de/luechow-group/inpsights/gnu:7.3.0
stage: test
cache:
key: "$CI_COMMIT_REF_SLUG-GNU"
paths:
- cmake-build-debug-gnu/
policy: pull
script:
- cd cmake-build-debug-gnu
- ctest -LE "(GUI)" -E "(example|spdlog-utests)" --output-on-failure -j4
dependencies:
- GNU build
Intel test:
image: registry.git.rwth-aachen.de/luechow-group/inpsights/intel:19.0.1.144
stage: test
cache:
key: "$CI_COMMIT_REF_SLUG-Intel"
paths:
- cmake-build-debug-intel/
policy: pull
before_script:
- source /opt/intel/parallel_studio_xe_2019/psxevars.sh intel64
script:
- cd cmake-build-debug-intel
- ctest -LE "(GUI|MaximaProcessing)" -E "(example|spdlog-utests)" --output-on-failure -j4
dependencies:
- Intel build