-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
64 lines (56 loc) · 1.28 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
image: ubuntu:20.04
stages:
- build
.scripts:
- &script_debian_dependencies |+
apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
cmake \
debhelper \
pkg-config \
libpam0g-dev \
libboost-all-dev \
gettext \
libgtest-dev \
groff-base \
po4a \
doxygen \
graphviz \
fakeroot \
wget \
git
- &script_unix_cmake_configure |+
mkdir b
cd b
cmake \
"-DCMAKE_INSTALL_PREFIX:PATH=${CI_PROJECT_DIR}/dist" \
-Dtest=ON \
.. || (cat CMakeFiles/CMakeError.log && exit 1)
- &script_unix_cmake_build |+
cmake --build .
fakeroot ctest --output-on-failure
cmake --build . --target install
.unix_cmake_configure: &unix_cmake_configure
before_script:
- *script_debian_dependencies
- *script_unix_cmake_configure
.unix_cmake_build: &unix_cmake_build
extends:
- .unix_cmake_configure
stage: build
script:
- *script_unix_cmake_build
artifacts:
name: $CI_PROJECT_NAME-$CI_JOB_NAME-bin
paths:
- dist
ubuntu:20.04:
image: ubuntu:20.04
extends:
- .unix_cmake_build
stage: build
debian:unstable:
image: debian:unstable
extends:
- .unix_cmake_build
stage: build