forked from mxklb/rtaudiostreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
150 lines (131 loc) · 3.18 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# Build OS = Ubuntu LTS (latest)
image: mxklb/docker-qt5-deb
stages:
- tests
- build
- deploy
- release
before_script:
- apt-get update -y
- apt-get install -y wget xvfb chrpath librtaudio-dev libfuse2 libcairo2
- git submodule update --init --recursive
## 1 Debug builds (++ test)
.debug_build_with_tests:
stage: tests
except:
- tags
script:
- qmake rtaudiostreamer.pro -r CONFIG+=debug
- make
debug_tests:
extends: .debug_build_with_tests
# Debug build (++ test coverage)
debug_tests_coverage:
extends: .debug_build_with_tests
script:
- qmake rtaudiostreamer.pro -r CONFIG+=debug
- make
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
- gcovr -r . -e '.*extern.*' -e '.*moc_.*'
- chmod +x lcov.sh && ./lcov.sh
- mv coverage/*.pdf .
- mv coverage/*.tar.gz .
artifacts:
paths:
- coverage.pdf
- coverage.tar.gz
name: "test_coverage"
# Test latest Ubuntu (rolling)
debug_tests_rolling:
extends: .debug_build_with_tests
image: mxklb/docker-qt5-deb:rolling
allow_failure: true
# Test bleeding Ubuntu (devel)
debug_tests_devel:
extends: .debug_build_with_tests
image: mxklb/docker-qt5-deb:devel
allow_failure: true
## 2 Release build (++ tests)
release_tests:
stage: tests
script:
- qmake rtaudiostreamer.pro -r CONFIG+=release
- make
## 3 Release build (no tests)
release_build:
stage: build
script:
- echo "catchTests=false" > globals.pri
- qmake rtaudiostreamer.pro -r CONFIG+=release
- make
## 4 Build & Deploy debian packages
.build_debian:
stage: deploy
artifacts:
paths:
- rtaudiostreamer-*.deb
.build_debian_xenial:
extends: .build_debian
image: mxklb/docker-qt5-deb:xenial
script:
- chmod +x pkgs/version.sh
- chmod +x pkgs/debian.sh && pkgs/debian.sh
- mv pkgs/deb/rtaudiostreamer-*.deb .
artifacts:
name: "rtaudiostreamer-xenial_amd64"
.build_debian_trusty:
extends: .build_debian
image: mxklb/docker-qt5-deb:trusty
script:
- export USER=$GITLAB_USER_LOGIN
- chmod +x pkgs/version.sh
- chmod +x pkgs/debian.sh && pkgs/debian.sh
- mv pkgs/deb/rtaudiostreamer-*.deb .
artifacts:
name: "rtaudiostreamer-trusty_amd64"
# Continuous deployments
debian_trusty_latest:
extends: .build_debian_trusty
debian_xenial_latest:
extends: .build_debian_xenial
# Release deployments
debian_trusty_stable:
extends: .build_debian_trusty
stage: release
only:
- tags
except:
- /^(?!master).+@/
debian_xenial_stable:
extends: .build_debian_xenial
stage: release
only:
- tags
except:
- /^(?!master).+@/
## 5 Build & Deploy .AppImage's
.build_appimage:
stage: deploy
image: mxklb/docker-qt5-deb:trusty
script:
- echo "catchTests=false" > globals.pri
- qmake rtaudiostreamer.pro -r CONFIG+=release
- make
- chmod +x pkgs/version.sh
- chmod +x pkgs/appimage.sh && pkgs/appimage.sh
- mv pkgs/rtaudiostreamer-* .
artifacts:
paths:
- rtaudiostreamer-*
name: "rtaudiostreamer-x86_64"
# Continuous deployment
appimage_latest:
extends: .build_appimage
# Release deployment
appimage_stable:
extends: .build_appimage
stage: release
only:
- tags
except:
- /^(?!master).+@/