-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
41 lines (37 loc) · 987 Bytes
/
.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
image: paragoumba/cpp-ci-cd-opengl
stages:
- tests
- deploy
pages:
stage: deploy
script:
- doxygen
- mv doc/html/ public/
artifacts:
paths:
- public
only:
- master
build:
variables:
OUTPUT_FILE: mandelbulb-$CI_COMMIT_REF_NAME.tar.zst
stage: deploy
script:
- cmake -S . -B cmake-build-debug -DCMAKE_BUILD_TYPE=Release
- cmake --build cmake-build-debug --target MandelBulb
- mkdir src/cmake-build-debug/bin
- mv src/cmake-build-debug/MandelBulb src/cmake-build-debug/bin/
- chmod u+x install.sh
- tar caf $OUTPUT_FILE -C src/cmake-build-debug/ bin ../res/ ../../MandelBulb.desktop ../../install.sh ../../res/mandelbulb-logo-nt150.png
artifacts:
paths:
- $OUTPUT_FILE
only:
- tags
tests:
stage: tests
script:
- cmake -S . -B cmake-build-debug
- cmake --build cmake-build-debug --target MandelBulb
- cmake --build cmake-build-debug --target Tests
- ./tests/cmake-build-debug/Tests