Add cmake build to gitlab ci.
authorRalph Giles <giles@thaumas.net>
Wed, 15 Apr 2020 16:29:35 +0000 (09:29 -0700)
committerRalph Giles <giles@thaumas.net>
Wed, 15 Apr 2020 16:46:20 +0000 (09:46 -0700)
Add an additional build job to the gitlab ci pipeline to do a
cmake build. This doesn't run tests, but gives us a little
bit of converage.

.gitlab-ci.yml

index 8633f76..3341d50 100644 (file)
@@ -1,7 +1,7 @@
 # Image from https://hub.docker.com/_/gcc/ based on Debian
 image: gcc
 
-build:
+autoconf:
   stage: build
   before_script:
     - apt-get update &&
@@ -17,3 +17,16 @@ build:
       - "lib/.libs/*.o"
   tags:
     - docker
+
+cmake:
+  stage: build
+  before_script:
+    - apt-get update &&
+      apt-get install -y libogg-dev zip doxygen
+        cmake ninja-build
+  script:
+    - mkdir build
+    - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
+    - cmake --build build
+  tags:
+    - docker