-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
44 lines (38 loc) · 871 Bytes
/
.gitlab-ci.yml
File metadata and controls
44 lines (38 loc) · 871 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
42
default:
tags:
- kubernetes
image:
gcc:11
#ubuntu:20.04
stages: # List of stages for jobs, and their order of execution
- build
- test
build-job:
stage: build
artifacts:
untracked: true
before_script:
- apt-get update
- apt-get install -yqq cmake libgtest-dev libglm-dev libboost-timer-dev libboost-program-options-dev
- apt-get install -yqq python3-dev
- cd /usr/src/gtest
- cmake CMakeLists.txt && make
- cd $CI_PROJECT_DIR
script:
- mkdir build && cd build
- cmake ..
- echo "compiling with $(nproc) cores"
- make -j $(nproc)
test-job:
stage: test
script:
- cd $CI_PROJECT_DIR
- cd build
- ./tests/tests --gtest_output=xml:xunit.xml
artifacts:
when: always
expire_in: 3 days
paths:
- build/xunit.xml
reports:
junit: build/xunit.xml