-
Notifications
You must be signed in to change notification settings - Fork 38
/
.gitlab-ci.yml
212 lines (180 loc) · 7.81 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# This is performed before the scripts in the stages step
before_script:
- source /etc/profile
# Defines stages which are to be executed
stages:
- build
# Stage "build"
archlinux:
image: archlinux/base:latest
stage: build
script:
- pacman -Syu --noconfirm
- pacman -S --noconfirm gcc make cmake git boost boost-libs protobuf qt5-base qt5-declarative qt5-location qt5-charts qt5-quickcontrols2
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
centos8:
image: centos:centos8
stage: build
script:
- dnf install -y wget
- wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
- rpm -Uvh epel-release-latest-8.noarch.rpm
- dnf install -y 'dnf-command(config-manager)'
- dnf config-manager --set-enabled PowerTools
- dnf config-manager --enable epel-testing epel-playground
- dnf install -y gcc-c++ make cmake git boost-devel protobuf-devel protobuf-compiler qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtlocation-devel qt5-qtcharts-devel qt5-qtdeclarative-devel
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
debian10:
image: debian:buster-slim
stage: build
script:
- apt-get update
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
debian11:
image: debian:bullseye-slim
stage: build
script:
- apt-get update
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
fedora28:
image: fedora:28
stage: build
before_script:
- source ~/.bash_profile
script:
- dnf install -y gcc-c++ make cmake git boost-devel protobuf-devel protobuf-compiler qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtlocation-devel qt5-qtcharts-devel qt5-qtdeclarative-devel
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
fedora29:
image: fedora:29
stage: build
before_script:
- source ~/.bash_profile
script:
- dnf install -y gcc-c++ make cmake git boost-devel protobuf-devel protobuf-compiler qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtlocation-devel qt5-qtcharts-devel qt5-qtdeclarative-devel
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
opensuse-leap15.1:
image: opensuse/leap:15.1
stage: build
before_script:
- pwd
script:
- zypper -n up
- zypper -n install gcc-c++ cmake git boost-devel protobuf-devel libqt5-qtnetworkauth-devel libQt5PrintSupport-devel libQt53DQuick-devel libqt5-qtlocation-devel libQt5Charts5-devel
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
opensuse-tumbleweed:
image: opensuse/tumbleweed
stage: build
before_script:
- pwd
script:
- zypper -n dup
- zypper -n install gcc-c++ cmake git boost-devel protobuf-devel libqt5-qtnetworkauth-devel libQt5PrintSupport-devel libQt53DQuick-devel libqt5-qtlocation-devel libQt5Charts5-devel
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
ubuntu18.04:
image: ubuntu:bionic
stage: build
script:
- apt-get update
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
ubuntu19.04:
image: ubuntu:disco
stage: build
script:
- sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
- apt-get update
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
ubuntu19.10:
image: ubuntu:eoan
stage: build
script:
- apt-get update
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
ubuntu20.04:
image: ubuntu:focal
stage: build
script:
- apt-get update
- export DEBIAN_FRONTEND=noninteractive
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
ubuntu20.10:
image: ubuntu:groovy
stage: build
script:
- apt-get update
- export DEBIAN_FRONTEND=noninteractive
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- make -j $(nproc)
- make install
allow_failure: true
coverity-scan:
image: ubuntu:bionic
stage: build
script:
- apt-get update
- apt-get install -y wget curl ca-certificates
- wget -O cov-analysis-linux64-2019.03.tar.gz https://scan.coverity.com/download/cxx/linux64 --post-data "project=$COVERITY_SCAN_USER%2Fgnss-sdr-monitor&token=$COVERITY_SCAN_TOKEN" --no-check-certificate
- tar xvzf cov-analysis-linux64-2019.03.tar.gz
- export PATH=$PATH:$(pwd)/cov-analysis-linux64-2019.03/bin
- apt-get install -y --no-install-recommends build-essential cmake git libboost-dev libboost-system-dev libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev qtpositioning5-dev libqt5charts5-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-window2 qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-layouts
- cd build
- cmake ..
- cov-build --dir cov-int make -j2
- tar cvzf gnss-sdr-monitor.tgz cov-int
- curl -k --form token=$COVERITY_SCAN_TOKEN --form email=$COVERITY_SCAN_EMAIL --form file=@$(pwd)/gnss-sdr-monitor.tgz --form version="0" --form description=" " https://scan.coverity.com/builds?project=$COVERITY_SCAN_USER%2Fgnss-sdr-monitor --progress-bar | tee -a "log_upload.txt" ; test ${PIPESTATUS[0]} -eq 0
allow_failure: true
when: manual