-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
86 lines (67 loc) · 1.17 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
83
84
85
86
image: andreipoe/buildpack-cpp:20.04
stages:
- build
- test
.build:meson:
stage: build
script:
- meson build
- ninja -C build
artifacts:
paths:
- build
expire_in: 1 day
.test:meson:
stage: test
script:
- cd build
- ./scs-test
build:meson:gcc:
extends: .build:meson
variables:
CXX: g++
test:meson:gcc:
extends: .test:meson
needs:
- build:meson:gcc
build:meson:clang:
extends: .build:meson
variables:
CXX: clang++
test:meson:clang:
extends: .test:meson
needs:
- build:meson:clang
.build:make:
stage: build
script:
- make -j COMPILER=$COMPILER
artifacts:
untracked: true
expire_in: 1 day
.test:make:
stage: test
script:
- touch *.o # Otherwise base objects will be rebuilt, too
- make -j COMPILER=$COMPILER test
- ./test/scs-test
build:make:gcc:
extends: .build:make
variables:
COMPILER: GNU
test:make:gcc:
extends: .test:make
variables:
COMPILER: GNU
needs:
- build:make:gcc
build:make:clang:
extends: .build:make
variables:
COMPILER: CLANG
test:make:clang:
extends: .test:make
variables:
COMPILER: CLANG
needs:
- build:make:clang