-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.gitlab-ci.yml
80 lines (70 loc) · 1.61 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
stages:
- build
- check
- deploy
build-16.04:
stage: build
image: ubuntu:16.04
before_script:
- apt update && apt install -y cmake build-essential git
- git submodule update --init --recursive
script:
- mkdir build && cd build
- cmake ..
- make
- ./example
artifacts:
paths:
- build
reports:
performance:
- performance.json
expire_in:
1 week
build-18.04:
stage: build
image: ubuntu:18.04
before_script:
- apt update && apt install -y cmake build-essential git
- git submodule update --init --recursive
script:
- mkdir build && cd build
- cmake ..
- make
- ./example
artifacts:
paths:
- build
expire_in:
1 week
test-16.04:
stage: check
dependencies:
- build-16.04
image: ubuntu:16.04
before_script:
- apt update && apt install -y valgrind
script:
- valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all build/example
test-18.04:
stage: check
dependencies:
- build-18.04
image: ubuntu:18.04
before_script:
- apt update && apt install -y valgrind
script:
- valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all build/example
pages:
stage: deploy
image: python:alpine
before_script:
- pip install mkdocs
script:
- mkdocs build
- mv site public
artifacts:
paths:
- public
only:
- master