From f7026349d3a9cb4e3c02c7f46d4c593e78132e75 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 11 Feb 2020 14:10:58 +0100 Subject: chore: Add support for Gitlab CI This change adds the configuration of Gitlab CI in order to test on our internal Gitlab instance. --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..a095f7e7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +image: gradle:6.1-jdk13 + +variables: + GRADLE_OPTS: "-Dorg.gradle.daemon=false" + +before_script: + - export GRADLE_USER_HOME=`pwd`/.gradle + +stages: + - build + - test + +build: + stage: build + script: + - gradle --build-cache assemble + allow_failure: false + cache: + key: "$CI_COMMIT_REF_NAME" + policy: push + paths: + - build + - .gradle + +test: + stage: test + script: + - gradle check + cache: + key: "$CI_COMMIT_REF_NAME" + policy: pull + paths: + - build + - .gradle -- cgit v1.2.3