forked from vanreeslab/murphy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
82 lines (74 loc) · 2.07 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
# do this in front of every test
default :
image : immc/murphy-ci:v1.2
# before_script:
# - "export OMP_NUM_THREADS=1"
# list of the stages
stages:
- build
- test
- validation
# =============================================================================
build gcc :
stage: build
script:
- "mkdir -p build"
- "mkdir -p test/build"
- "make destroy"
- "ARCH_FILE=make_arch/make.docker_gcc_test_ci make -j"
# =============================================================================
build test :
stage: build
artifacts:
paths:
- ./murphy_test
- ./build/*.gcda
- ./build/*.gcno
when: on_success
script:
- "mkdir -p build"
- "mkdir -p test/build"
- "make destroy"
- "ARCH_FILE=make_arch/make.docker_gcc_test_ci make test -j"
# =============================================================================
test pure mpi:
stage: test
dependencies:
- build test
script:
- "OMP_NUM_THREADS=1 mpirun --tag-output -n 3 ./murphy_test --gtest_filter=test_* --gtest_output=\"xml:report_test.xml\" "
- "gcovr -r . -e test "
artifacts:
reports:
junit: report_test_*.xml
test threads:
stage: test
dependencies:
- build test
script:
- "OMP_NUM_THREADS=4 mpirun --tag-output -n 1 ./murphy_test --gtest_filter=test_* --gtest_output=\"xml:report_test.xml\" "
- "gcovr -r . -e test "
artifacts:
reports:
junit: report_test_*.xml
test hybrid:
stage: test
dependencies:
- build test
script:
- "OMP_NUM_THREADS=4 mpirun --tag-output -n 3 ./murphy_test --gtest_filter=test_* --gtest_output=\"xml:report_test.xml\" "
- "gcovr -r . -e test "
artifacts:
reports:
junit: report_test_*.xml
# =============================================================================
validation :
stage: validation
dependencies:
- build test
script:
- "OMP_NUM_THREADS=4 mpirun --tag-output -n 3 ./murphy_test --gtest_filter=valid_* --gtest_output=\"xml:report_valid.xml\" "
- "gcovr -r . -e test "
artifacts:
reports:
junit: report_valid_*.xml