2021-09-30 23:02:18 +05:30
|
|
|
# To contribute improvements to CI/CD templates, please follow the Development guide at:
|
|
|
|
# https://docs.gitlab.com/ee/development/cicd/templates.html
|
|
|
|
# This specific template is located at:
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Grails.gitlab-ci.yml
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
# This template uses the java:8 docker image because there isn't any
|
|
|
|
# official Grails image at this moment
|
|
|
|
#
|
|
|
|
# Grails Framework https://grails.org/ is a powerful Groovy-based web application framework for the JVM
|
|
|
|
#
|
|
|
|
# This yml works with Grails 3.x only
|
|
|
|
# Feel free to change GRAILS_VERSION version with your project version (3.0.1, 3.1.1,...)
|
|
|
|
# Feel free to change GRADLE_VERSION version with your gradle project version (2.13, 2.14,...)
|
|
|
|
# If you use Angular profile, this yml it's prepared to work with it
|
|
|
|
|
|
|
|
image: java:8
|
|
|
|
|
|
|
|
variables:
|
|
|
|
GRAILS_VERSION: "3.1.9"
|
|
|
|
GRADLE_VERSION: "2.13"
|
2019-07-07 11:18:12 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
# We use SDKMan as tool for managing versions
|
|
|
|
before_script:
|
2019-09-04 21:01:54 +05:30
|
|
|
- apt-get update -qq && apt-get install -y -qq unzip
|
|
|
|
- curl -sSL https://get.sdkman.io | bash
|
|
|
|
- echo sdkman_auto_answer=true > /root/.sdkman/etc/config
|
|
|
|
- source /root/.sdkman/bin/sdkman-init.sh
|
|
|
|
- sdk install gradle $GRADLE_VERSION < /dev/null
|
|
|
|
- sdk use gradle $GRADLE_VERSION
|
|
|
|
# As it's not a good idea to version gradle.properties feel free to add your
|
|
|
|
# environments variable here
|
|
|
|
- echo grailsVersion=$GRAILS_VERSION > gradle.properties
|
|
|
|
- echo gradleWrapperVersion=2.14 >> gradle.properties
|
|
|
|
# refresh dependencies from your project
|
|
|
|
- ./gradlew --refresh-dependencies
|
|
|
|
# Be aware that if you are using Angular profile,
|
|
|
|
# Bower cannot be run as root if you don't allow it before.
|
|
|
|
# Feel free to remove next line if you are not using Bower
|
|
|
|
- echo {\"allow_root\":true} > /root/.bowerrc
|
2016-09-13 17:45:13 +05:30
|
|
|
|
|
|
|
# This build job does the full grails pipeline
|
|
|
|
# (compile, test, integrationTest, war, assemble).
|
|
|
|
build:
|
2019-09-04 21:01:54 +05:30
|
|
|
script:
|
|
|
|
- ./gradlew build
|