-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (50 loc) · 1.43 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
default:
tags:
- docker
# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc:9
autotools:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev
libtool-bin gettext zip
doxygen graphviz
# Create an unpriviledged user, required for tests.
- adduser --disabled-password --gecos "Gitlab CI" flac
script:
- ./autogen.sh
- ./configure
- make
- su -c 'make distcheck' flac
cmake:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev
cmake ninja-build
doxygen graphviz
# Create an unpriviledged user, required for tests.
- adduser --disabled-password --gecos "Gitlab CI" flac
script:
- mkdir _build
- cmake -S . -B _build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
- chown -R flac .
- su -c 'cmake --build _build' flac
- su -c 'cd _build && ctest -V' flac
makefile:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev
# Create an unpriviledged user, required for tests.
- adduser --disabled-password --gecos "Gitlab CI" flac
script:
# The makefile doesn't create the `objs` tree it expects to use.
- mkdir -p objs/release/lib
- mkdir -p objs/release/bin
- mkdir -p objs/debug/lib
- mkdir -p objs/debug/bin
- chown -R flac .
- su -c 'make -f Makefile.lite' flac
- su -c 'make -f Makefile.lite test' flac