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

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


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

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
  artifacts:
    paths:
    - install/
    name: "$CI_BUILD_NAME"
    expire_in: 6 hrs
33
  only:
34
  - master
35
36
37
38

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

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


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

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

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

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


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

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

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

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


137
138
# compiel and run the tests
package:xenial:
139
140
  stage: package
  script:
141
  - cmake -DDISTRIBUTION=xenial -P tools/packaging/debian/create_package.cmake
142
143
144
  only:
  - master

145
package:yakkety:
146
147
  stage: package
  script:
148
  - cmake -DDISTRIBUTION=yakkety -P tools/packaging/debian/create_package.cmake
149
150
  only:
  - master