summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2020-04-21 09:19:56 -0700
committerRalph Giles <giles@thaumas.net>2020-05-09 17:44:14 -0700
commitd1b5efe44739c094badf008e33f6fecae6751caa (patch)
tree121d6c3cbd80145875e24efb0a39567e42b358f3 /.gitlab-ci.yml
parent5c94ec3205c30171ffd01056f5b4622b7c0ab54c (diff)
downloadopus-d1b5efe44739c094badf008e33f6fecae6751caa.tar.gz
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>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..34847ad0
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,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