summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2019-07-31 12:01:32 -0700
committerRalph Giles <giles@thaumas.net>2020-05-04 10:05:12 -0700
commit0f1b6987e7232b7aa3c0e51d317e7e78511694c8 (patch)
treed8db55a90172f863ac37a6ad87bd223e261280ed
parentfc9246984617fb73fc60323ee767e9647916585d (diff)
downloadogg-git-0f1b6987e7232b7aa3c0e51d317e7e78511694c8.tar.gz
Add gitlab integration tests.
We've moved hosting to a gitlab instance. Make use of the built-in integration testing framework to verify commits. This has parallel jobs to run the autotools and cmake builds. Note that the autotools job needs cmake because the `distcheck` target verifies that the generated source package also builds correctly with cmake, in particular to check that the necessary files are included.
-rw-r--r--.gitlab-ci.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..5c28d97
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,27 @@
+# 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 cmake
+ script:
+ - ./autogen.sh
+ - ./configure
+ - make
+ - make distcheck
+ tags:
+ - docker
+
+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
+ tags:
+ - docker