From 0f1b6987e7232b7aa3c0e51d317e7e78511694c8 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Wed, 31 Jul 2019 12:01:32 -0700 Subject: 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. --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml 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 -- cgit v1.2.1