From d1b5efe44739c094badf008e33f6fecae6751caa Mon Sep 17 00:00:00 2001
From: Ralph Giles <giles@thaumas.net>
Date: Tue, 21 Apr 2020 09:19:56 -0700
Subject: [PATCH] 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>
---
 .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..34847ad06
--- /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
-- 
GitLab