Add gitlab CI configuration
authorJán Veselý <jano.vesely@gmail.com>
Thu, 6 Dec 2018 19:21:27 +0000 (14:21 -0500)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 6 Dec 2018 20:50:18 +0000 (15:50 -0500)
Build both automake and meson using latest arch
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
.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..377010f
--- /dev/null
@@ -0,0 +1,61 @@
+.artifacts-meson: &artifacts-meson
+  when: always
+  paths:
+   - _build/meson-logs
+
+.artifacts-autotools: &artifacts-autotools
+  when: always
+  paths:
+    - _build/*.log
+    - _build/*/*.log
+    - _build/*/*/*.log
+
+.meson-build-lcms: &meson-build-lcms
+  - meson _build
+      -D enable-f16c=true
+      -D enable-mmx=true
+      -D enable-sse=true
+      -D enable-sse2=true
+      -D enable-sse3=true
+      -D enable-sse4_1=true
+      -D with-docs=true
+  - ninja -C _build
+  - ninja -C _build test
+
+.autotools-build-lcms: &autotools-build-lcms
+  - mkdir _build
+  - cd _build
+  - ../autogen.sh
+      --enable-docs
+      --enable-f16c
+      --enable-mmx
+      --enable-sse
+      --enable-sse2
+      --enable-sse3
+      --enable-sse4_1
+      --with-lcms
+  - make
+  - make check
+
+latest-meson-lcms:
+  stage: build
+  image: base/archlinux:latest
+  artifacts: *artifacts-meson
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        meson
+        lcms2
+        git
+  script: *meson-build-lcms
+
+latest-autotools-lcms:
+  stage: build
+  image: base/archlinux:latest
+  artifacts: *artifacts-autotools
+  before_script:
+    - pacman -Syu --noconfirm --needed
+        base-devel
+        lcms2
+        git
+  script: *autotools-build-lcms