Skip to content

Commit d702294

Browse files
committed
updated travis.yml
1 parent 71f4b1c commit d702294

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.travis.yml

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1+
12
language: groovy
23
jdk:
34
- oraclejdk7
5+
sudo: false
46
branches:
57
only:
68
- master
79
before_install:
8-
- rm -rf ~/.gvm
9-
- curl -s get.gvmtool.net > ~/install_gvm.sh
10-
- chmod 775 ~/install_gvm.sh
11-
- ~/install_gvm.sh
12-
- echo "gvm_auto_answer=true" > ~/.gvm/etc/config
13-
- source ~/.gvm/bin/gvm-init.sh
14-
- GRAILS_VERSION=`grep '^app\.grails\.version=' ./application.properties | sed -e
15-
's/^app\.grails\.version=//g'`
16-
- gvm install grails $GRAILS_VERSION || true
17-
before_script:
18-
- mkdir -p ~/.grails; wget -q -O ~/.grails/settings.groovy https://raw.githubusercontent.com/AtlasOfLivingAustralia/travis-build-configuration/master/travis_grails_settings_new.groovy
19-
- MAVEN_REPO="ala-repo-snapshot"; grep '^app\.version=' ./application.properties |
20-
grep -q "\-SNAPSHOT"; if [ "$?" = "1" ]; then MAVEN_REPO="ala-repo-release"; fi;
21-
script: grails clean && grails refresh-dependencies --non-interactive && grails prod
22-
war --non-interactive && grails prod maven-deploy --repository=$MAVEN_REPO --non-interactive
10+
- wget -q https://raw.githubusercontent.com/AtlasOfLivingAustralia/travis-build-configuration/master/ala_common.sh
11+
- chmod +x ala_common.sh
12+
- source ./ala_common.sh
13+
- ala_travis_grails_setup_env
14+
script:
15+
- ala_travis_grails_build
2316
env:
2417
global:
2518
- secure: OqyYLYoeTw2ifeopsXEQnLDF8DA5j12iSH9mKGXjE6abkrhXCghWOtb+jGstRvJr/ZrpJfFK3VOkistgkf6y8/RYxB7a0MJsr+1GUXtdHhtPbUcShJDybj6AlbgPCI2J4VdIQSB+ey2XZKOMOO3+XwbsczrTHBh5KpBHdI7Tw8I=

0 commit comments

Comments
 (0)