diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-02-11 14:10:58 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-02-11 14:20:49 +0100 |
| commit | f7026349d3a9cb4e3c02c7f46d4c593e78132e75 (patch) | |
| tree | 18e26e73a3d4519b8352a17ae47c52ce8a75245a /.gitlab-ci.yml | |
| parent | 878990c8e230a43b534fc8e870f59630152fb6bf (diff) | |
chore: Add support for Gitlab CI
This change adds the configuration of Gitlab CI in order to test on our
internal Gitlab instance.
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
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 |
