From 8c89fd27cf7b45b4b63a06036ccc45e6ac7a6bb7 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Tue, 5 Jun 2018 22:28:04 +0200 Subject: [PATCH] Try if gitlab-ci is as easy as Travis... --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0ead23d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +# Minimized from https://about.gitlab.com/2016/10/12/automated-debian-package-build-with-gitlab-ci/ +# https://github.com/gitlabhq/gitlabhq/blob/master/vendor/gitlab-ci-yml/C%2B%2B.gitlab-ci.yml + +# use the official gcc image, based on debian +# can use verions as well, like gcc:5.2 +# see https://hub.docker.com/_/gcc/ +#image: gcc + +before_script: + - apt-get update + +# Defines stages which are to be executed +stages: + - build-gcc + - build-clang + +# Stage "build" +run-build-gcc: + stage: build-gcc + script: + - apt-get install -y gcc + - make + - cd tests && ./RunTests + +# Stage "build-clang" +run-build-clang: + stage: build-clang + script: + - apt-get install -y clang + - CC=clang make + - cd tests && ./RunTests +