2021-06-22 20:56:37 +03:00
|
|
|
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
|
2022-09-22 20:10:18 +03:00
|
|
|
doxygen graphviz pandoc
|
2021-06-22 20:56:37 +03:00
|
|
|
# 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
|
2022-09-22 20:10:18 +03:00
|
|
|
doxygen graphviz pandoc
|
2021-06-22 20:56:37 +03:00
|
|
|
# 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
|