-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
116 lines (104 loc) · 2.34 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- precompile
- build
- test
linux:precompile:
stage: precompile
needs: []
tags: [g++, CMake, amd64, debian]
script:
- ./precompile_llvm.sh
cache:
key: linux_precompile
paths:
- deps/llvm-project-prebuild/
- precompile_llvm/
artifacts:
paths:
- deps/llvm-project-prebuild
expire_in: 1 year
only:
- master
- testing
linux:build:debug:
stage: build
needs: ["linux:precompile"]
tags: [g++, CMake, amd64, debian]
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make -j$(nproc)
cache:
key: linux_precompile
paths:
- deps/llvm-project-prebuild/
policy: pull
artifacts:
paths:
- ./build/tauc
expire_in: 60 minutes
only:
- master
- testing
linux:build:release:
stage: build
needs: ["linux:precompile"]
tags: [g++, CMake, amd64, debian]
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j$(nproc)
cache:
key: linux_precompile
paths:
- deps/llvm-project-prebuild/
policy: pull
artifacts:
paths:
- ./build/tauc
expire_in: 20 minutes
only:
- master
- testing
linux:test:debug:
stage: test
needs: ["linux:build:debug"]
tags: [g++, CMake, amd64, debian]
script:
- ./tests/run.sh
only:
- master
- testing
linux:test:release:
stage: test
needs: ["linux:build:release"]
tags: [g++, CMake, amd64, debian]
script:
- ./tests/run.sh
only:
- master
- testing
linux:valgrind:debug:
stage: test
needs: ["linux:build:debug"]
tags: [g++, CMake, amd64, debian, valgrind]
script:
# skipping bigtest because it's very slow in valgrind
- ./tests/run.sh -v -s bigtest
only:
- master
- testing
linux:valgrind:release:
stage: test
needs: ["linux:build:release"]
tags: [g++, CMake, amd64, debian, valgrind]
script:
# skipping bigtest because it's very slow in valgrind
- ./tests/run.sh -v -s bigtest
only:
- master
- testing