-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
33 lines (32 loc) · 1.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: groovy
jdk:
- oraclejdk7
node_js:
- "0.10"
branches:
only:
- master
- dev
before_install:
- rm -rf ~/.sdkman
- curl -s get.sdkman.io > ~/install_sdkman.sh
- chmod 775 ~/install_sdkman.sh
- ~/install_sdkman.sh
- echo "sdkman_auto_answer=true" > ~/.sdkman/etc/config
- source ~/.sdkman/bin/sdkman-init.sh
- GRAILS_VERSION=`grep '^app\.grails\.version=' ./fieldcapture-hubs-plugin/application.properties | sed -e
's/^app\.grails\.version=//g'`
- sdk install grails $GRAILS_VERSION || true
before_script:
- mkdir -p ~/.grails; wget -q -O ~/.grails/settings.groovy https://raw.githubusercontent.com/AtlasOfLivingAustralia/travis-build-configuration/master/travis_grails_settings_new.groovy
script:
- cd fieldcapture-hubs-plugin;
- npm install --save-dev
- node_modules/karma/bin/karma start karma.conf.js --single-run --browsers PhantomJS
- MAVEN_REPO="ala-repo-snapshot"; grep 'def version =' ./FieldcapturePluginGrailsPlugin.groovy | grep -q "\-SNAPSHOT"; if [ "$?" = "1" ]; then MAVEN_REPO="ala-repo-release"; fi;
- grails clean; grails refresh-dependencies --non-interactive; grails test-app --non-interactive
- '[ "$TRAVIS_PULL_REQUEST" != "false" ] || grails prod maven-deploy --repository=$MAVEN_REPO --non-interactive'
env:
global:
- secure: enbmAS6MFwP5f/94ZK8UHbGu0uJtdKNGr1HJsVTCa2Nfv5P3zXRkbmW2kKsvV7AXROUOz7+GAkNYzWbb1NApLkNcjwq5Dptip20uYfYCXqgVw76S2ddubpsOWoBgGETpSCO0zi6YnBwzdc1aY5+IP8UKgY34sHjgppNfe39UUmQ=
- secure: OU/lhyGMduFcAtC/YHs/bCdEzH4wI9JYCwfU5dt/BLueP60Em7LcG3nbSFyCb2oK4eHTDdEHiSyMOsbrQ0wrs6zLitjUcNZIR9/gi6wKIGNli65xlevTbmFE59TXiNbbaMfccidJTehJCE+8N8X6QR3nXFKIReRMYimaAz58KWU=