Add gitlab-ci template

This commit is contained in:
Oliver Rümpelein 2021-02-21 14:08:22 +01:00
parent e18088cd9b
commit aad1a52cac
2 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@ -65,4 +65,3 @@ hs_err_pid*
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

18
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,18 @@
# Based on https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Gradle.gitlab-ci.yml
image: gradle:alpine
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
build:
stage: build
script: gradle --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle