.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
21
22
23
24
25
  only:
  - master

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
33
34
35
36
37
  only:
  - master

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
45
46
47
48
49
  only:
  - master

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
57
58
59
60
61
62
63
64
  only:
  - master


# 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
68
69
70
71
72
73
  only:
  - master

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
77
78
79
80
81
82
  only:
  - master

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
86
87
88
89
90
91
  only:
  - master

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
95
96
97
98
99
100
101
102
  only:
  - master


# 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
106
107
108
109
110
111
  only:
  - master

test:9-release-gcc:
  stage: test
  script:
  - tools/build_amdis.sh --stage test --config Release
112
113
  dependencies:
  - build:9-release-gcc
114
115
  only:
  - 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
124
125
126
127
128
129
  only:
  - master

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