Add gitlab ci configuration.
authorRalph Giles <giles@thaumas.net>
Tue, 7 Apr 2020 18:27:50 +0000 (11:27 -0700)
committerRalph Giles <giles@thaumas.net>
Wed, 15 Apr 2020 16:46:07 +0000 (09:46 -0700)
Describe a basic autoconf build and test for gitlab's integrated
continuous integration runner. Uses the gcc docker image.

Copied from the theora version.

- `zip` is needed for `make dist`
- `doxygen` is needed to generate api documentation.
  latex is also needed, but a heavy dependency to install every run,
  so skipped for now.

.gitlab-ci.yml [new file with mode: 0644]

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..8633f76
--- /dev/null
@@ -0,0 +1,19 @@
+# Image from https://hub.docker.com/_/gcc/ based on Debian
+image: gcc
+
+build:
+  stage: build
+  before_script:
+    - apt-get update &&
+      apt-get install -y libogg-dev zip doxygen
+  script:
+    - ./autogen.sh
+    - ./configure
+    - make
+    - make distcheck
+  cache:
+    paths:
+      - "lib/*.o"
+      - "lib/.libs/*.o"
+  tags:
+    - docker