ref: d1b5efe44739c094badf008e33f6fecae6751caa
parent: 5c94ec3205c30171ffd01056f5b4622b7c0ab54c
author: Ralph Giles <giles@thaumas.net>
date: Tue Apr 21 05:19:56 EDT 2020
gitlab-ci: Add a build description. Describe builds for the gitlab continuous integration service runners. This does a trial build under both autotools and cmake, so we get some coverage for changes on that hosting platform. After the same script in the vorbis and ogg projects. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -1,0 +1,34 @@
+default:
+ tags:
+ - docker
+ # Image from https://hub.docker.com/_/gcc/ based on Debian
+ image: gcc
+
+autoconf:
+ stage: build
+ before_script:
+ - apt-get update &&
+ apt-get install -y zip doxygen
+ script:
+ - ./autogen.sh
+ - ./configure
+ - make
+ - make distcheck
+ cache:
+ paths:
+ - "src/*.o"
+ - "src/.libs/*.o"
+ - "silk/*.o"
+ - "silk/.libs/*.o"
+ - "celt/*.o"
+ - "celt/.libs/*.o"
+
+cmake:
+ stage: build
+ before_script:
+ - apt-get update &&
+ apt-get install -y cmake ninja-build
+ script:
+ - mkdir build
+ - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
+ - cmake --build build