diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-30 13:16:41 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-30 13:16:41 +0300 |
commit | 19b1b8499a55bdb66b7ea793be66c3e253af92ad (patch) | |
tree | 558038ba9f24cb7e1e0208bc8223ec6beeb452d4 /vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml | |
parent | f80e7683237a4aca01ff3d0c729c4933dde8753c (diff) |
Update templates for 8.13
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml')
-rw-r--r-- | vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml b/vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml new file mode 100644 index 00000000000..263c4c19999 --- /dev/null +++ b/vendor/gitlab-ci-yml/Gradle.gitlab-ci.yml @@ -0,0 +1,34 @@ +# This template uses the java:8 docker image because there isn't any +# official Gradle image at this moment +# +# This is the Gradle build system for JVM applications +# https://gradle.org/ +# https://github.com/gradle/gradle +image: java:8 + +# Make the gradle wrapper executable. This essentially downloads a copy of +# Gradle to build the project with. +# https://docs.gradle.org/current/userguide/gradle_wrapper.html +# It is expected that any modern gradle project has a wrapper +before_script: + - chmod +x gradlew + +# We redirect the gradle user home using -g so that it caches the +# wrapper and dependencies. +# https://docs.gradle.org/current/userguide/gradle_command_line.html +# +# Unfortunately it also caches the build output so +# cleaning removes reminants of any cached builds. +# The assemble task actually builds the project. +# If it fails here, the tests can't run. +build: + stage: build + script: + - ./gradlew -g /cache/.gradle clean assemble + allow_failure: false + +# Use the generated build output to run the tests. +test: + stage: test + script: + - ./gradlew -g /cache./gradle check |