-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
41 lines (37 loc) · 823 Bytes
/
.gitlab-ci.yml
File metadata and controls
41 lines (37 loc) · 823 Bytes
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
stages:
- checking
- building
- docker
clang-format:
stage: checking
script:
- git clone http://git.home.lan/root/check-clang-format.git
- cp check-clang-format/check-clang-format.py .
- python3 check-clang-format.py -r .
gcc:
stage: building
script:
- mkdir build
- cd build
- cmake -G "Unix Makefiles"
-DCMAKE_C_COMPILER=gcc
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_BUILD_TYPE=Release
..
- cmake --build .
clang:
stage: building
script:
- mkdir build
- cd build
- cmake -G "Unix Makefiles"
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=Release
..
- cmake --build .
ubuntu-18.04:
stage: docker
script:
- docker build -t docker_example:latest .
- docker run --rm docker_example