summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-10-13 00:08:49 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-10-13 00:33:05 +0200
commitf4f8cb65e01e62c86354a6697307f9549136a66e (patch)
treecff78091bc3e3c21c6585b08ba8a05c3ddf0b8ad
parentf88d2c259242936bbc3c74bf43107626c0f5ad61 (diff)
Add basic CI
-rw-r--r--.gitlab-ci.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..e7857e8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,38 @@
+image: debian:unstable
+
+before_script:
+ - echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
+ - apt-get update
+ - apt-get build-dep --yes --no-install-recommends libspectre
+ - apt-get install --yes --no-install-recommends locales clang
+ - echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
+ - locale-gen
+
+variables:
+ LANG: en_US.UTF-8
+ LANGUAGE: en_US:en
+ LC_ALL: en_US.UTF-8
+
+build:
+ stage: build
+ script:
+ - ./autogen.sh
+ - make
+
+build_clang:
+ stage: build
+ script:
+ - CC=clang ./autogen.sh
+ - make
+
+build_gcc_trusty:
+ stage: build
+ image: ubuntu:trusty
+ before_script:
+ - apt-get update
+ - apt-get install --yes --no-install-recommends build-essential libgs-dev locales automake libtool
+ - echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
+ - locale-gen
+ script:
+ - ./autogen.sh
+ - make