From 153a0d6f9e38c172f2f4d030adfb3fd273d76535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 27 Jul 2018 10:06:04 +0200 Subject: [PATCH] Test compilation and run unit tests via gitlab-ci --- .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3408691 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,38 @@ +variables: + DEPS: build-essential git + WANT_BUILD_DEPS: "true" + +before_script: + - export DEBIAN_FRONTEND=noninteractive + - apt-get -y update + - apt-get -y install wget ca-certificates gnupg eatmydata + - echo "deb http://ci.puri.sm/ scratch librem5" > /etc/apt/sources.list.d/ci.list + - wget -O- https://ci.puri.sm/ci-repo.key | apt-key add - + - eatmydata apt-get -y update + - eatmydata apt-get -y build-dep . + - eatmydata apt-get -y install $DEPS + - ulimit -c unlimited + +.tags: &tags + tags: + - librem5 + +build:native: + <<: *tags + stage: build + artifacts: + paths: + - _build + script: + - meson --werror . _build + - ninja -C _build + +test:native: + <<: *tags + stage: test + dependencies: + - build:native + script: + - export LC_ALL=C.UTF-8 + - xvfb-run ninja -C _build test +