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

Praetorius, Simon's avatar
Praetorius, Simon committed
4
5
6
7
8
9
10
stages:
  - build
  - demo
  - test


# compile amdis
11
12
13
build:9-debug-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
14
  - tools/build_amdis.sh --stage build --config Debug
15
16
17
18
19
  artifacts:
    paths:
    - install/
    name: "$CI_BUILD_NAME"
    expire_in: 6 hrs
20
  only:
21
  - master
22
23
24
25

build:9-release-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
26
  - tools/build_amdis.sh --stage build --config Release
27
28
29
30
31
  artifacts:
    paths:
    - install/
    name: "$CI_BUILD_NAME"
    expire_in: 6 hrs
32
  only:
33
  - master
34
35
36
37

build:9-parallel-debug-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
38
  - tools/build_amdis.sh --stage build --config Debug --parallel
39
40
41
42
43
  artifacts:
    paths:
    - install/
    name: "$CI_BUILD_NAME"
    expire_in: 6 hrs
44
  only:
45
  - master
46
47
48
49

build:9-parallel-release-gcc:
  stage: build
  script:
Praetorius, Simon's avatar
Praetorius, Simon committed
50
  - tools/build_amdis.sh --stage build --config Release --parallel
51
52
53
54
55
  artifacts:
    paths:
    - install/
    name: "$CI_BUILD_NAME"
    expire_in: 6 hrs
Praetorius, Simon's avatar
Praetorius, Simon committed
56
  only:
57
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
58
59
60
61
62
63
64


# compile the demos
demo:9-debug-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Debug
65
66
  dependencies:
  - build:9-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
67
  only:
68
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
69
70
71
72
73

demo:9-release-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Release
74
75
  dependencies:
  - build:9-release-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
76
  only:
77
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
78
79
80
81
82

demo:9-parallel-debug-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Debug --parallel
83
84
  dependencies:
  - build:9-parallel-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
85
  only:
86
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
87
88
89
90
91

demo:9-parallel-release-gcc:
  stage: demo
  script:
  - tools/build_amdis.sh --stage demo --config Release --parallel
92
93
  dependencies:
  - build:9-parallel-release-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
94
  only:
95
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
96
97
98
99
100
101
102


# compiel and run the tests
test:9-debug-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Debug
103
104
  dependencies:
  - build:9-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
105
  only:
106
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
107
108
109
110
111

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

test:9-parallel-debug-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Debug --parallel
121
122
  dependencies:
  - build:9-parallel-debug-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
123
  only:
124
  - master
Praetorius, Simon's avatar
Praetorius, Simon committed
125
126
127
128
129

test:9-parallel-release-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Release --parallel
130
131
  dependencies:
  - build:9-parallel-release-gcc
Praetorius, Simon's avatar
Praetorius, Simon committed
132
133
  only:
  - master