-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
47 lines (41 loc) · 1018 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
42
43
44
45
46
47
variables:
CXX: g++
APT_PACKAGES: build-essential cmake
CMAKE_FLAGS: -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON
# template to build the src
.build_tpl: &build_tpl
stage: build
before_script:
- apt-get update -qq && apt-get install -qq $APT_PACKAGES
script:
- $CXX -dumpversion
- cmake -version
- mkdir build && pushd build
- cmake $CMAKE_FLAGS ..
- make -j `nproc --all`
- CTEST_OUTPUT_ON_FAILURE=1 ctest -V
# gcc 5.4, cmake 3.5
ubuntu-16.04:
image: ubuntu:16.04
<<: *build_tpl
# gcc 7.3, cmake 3.10
ubuntu-18.04:
image: ubuntu:18.04
<<: *build_tpl
gcc-9:
image: gcc:9
<<: *build_tpl
clang-5:
image: ubuntu:16.04
variables:
CXX: clang++-5.0
APT_PACKAGES: cmake clang-5.0
CMAKE_FLAGS: -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON
<<: *build_tpl
with-qt5:
image: ubuntu:18.04
variables:
CXX: g++
APT_PACKAGES: build-essential cmake qtbase5-dev
CMAKE_FLAGS: -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DCPPCAPTURE_WITH_QT=ON
<<: *build_tpl