.gitlab-ci.yml 2.05 KB
Newer Older
1
---
2
image: mathiwr/amdis-base:debian9
3

Praetorius, Simon's avatar
Praetorius, Simon committed
4
5
6
7
8
9
cache:
  key: "$CI_BUILD_REF_NAME"
  untracked: true
  paths:
  - install/

Praetorius, Simon's avatar
Praetorius, Simon committed
10
11
12
13
14
15
16
stages:
  - build
  - demo
  - test


# compile amdis
17
18
19
build:9-debug-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
20
  - tools/build_amdis.sh --stage build --config Debug
21
22
23
24
25
26
  only:
  - master

build:9-release-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
27
  - tools/build_amdis.sh --stage build --config Release
28
29
30
31
32
33
  only:
  - master

build:9-parallel-debug-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
34
  - tools/build_amdis.sh --stage build --config Debug --parallel
35
36
37
38
39
40
  only:
  - master

build:9-parallel-release-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
41
42
43
44
45
46
47
48
49
50
  - tools/build_amdis.sh --stage build --config Release --parallel
  only:
  - master


# compile the demos
demo:9-debug-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Debug
51
52
  dependencies:
  - build:9-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
53
54
55
56
57
58
59
  only:
  - master

demo:9-release-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Release
60
61
  dependencies:
  - build:9-release-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
62
63
64
65
66
67
68
  only:
  - master

demo:9-parallel-debug-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Debug --parallel
69
70
  dependencies:
  - build:9-parallel-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
71
72
73
74
75
76
77
  only:
  - master

demo:9-parallel-release-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Release --parallel
78
79
  dependencies:
  - build:9-parallel-release-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
80
81
82
83
84
85
86
87
88
  only:
  - master


# compiel and run the tests
test:9-debug-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Debug
89
90
  dependencies:
  - build:9-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
91
92
93
94
95
96
97
  only:
  - master

test:9-release-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Release
98
99
  dependencies:
  - build:9-release-gcc
100
101
  only:
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
102
103
104
105
106

test:9-parallel-debug-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Debug --parallel
107
108
  dependencies:
  - build:9-parallel-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
109
110
111
112
113
114
115
  only:
  - master

test:9-parallel-release-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Release --parallel
116
117
  dependencies:
  - build:9-parallel-release-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
118
119
  only:
  - master