-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
98 lines (88 loc) · 1.7 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
stages:
- build
- test
- build-main
- deploy
variables:
QT_IMAGE: theshadowx/qt5:latest
DEBIAN_FRONTEND: noninteractive
include:
- template: Code-Quality.gitlab-ci.yml
.SetupBuildEnv:
image: ${QT_IMAGE}
only:
- pushes
- master
- merge_requests
before_script:
- apt update
- apt install -y g++-8
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
Build:
extends: .SetupBuildEnv
stage: build
script:
- qmake
- make -j4 sub-src
artifacts:
paths:
- lib/libHyperspaceExplorer.a
BuildDoc:
stage: build
image: ${QT_IMAGE}
only:
- master
before_script:
- apt install -y doxygen graphviz texlive ghostscript
script:
doxygen
artifacts:
paths:
- doc/html/**/*
Test:
extends: .SetupBuildEnv
stage: test
dependencies:
- Build
script:
- qmake
- make -j4 sub-tests
artifacts:
paths:
- tests/HyperspaceExplorer-tests
code_quality:
artifacts:
paths:
- gl-code-quality-report.json
BuildMain:
extends: .SetupBuildEnv
stage: build-main
dependencies:
- Build
- Test
script:
- qmake
- make sub-main
artifacts:
paths:
- HyperspaceExplorer
DeployDoc:
stage: deploy
only:
- master
dependencies:
- BuildDoc
script:
- echo "Deploying documentation to $CI_ENVIRONMENT_NAME ($CI_ENVIRONMENT_SLUG)"
environment:
name: doc
url: https://gitlab.com/lilacashes/HyperspaceExplorer/doc
PushToGithub:
stage: deploy
only:
- master
when: manual
script:
- git remote add github [email protected]:lene/HyperspaceExplorer.git
- git remote show github
- git push github master