forked from AtlasOfLivingAustralia/ala-map-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 3.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dist: trusty
language: groovy
sudo: false
jdk:
- openjdk7
branches:
only:
- master
- dev
before_install:
- export TZ=Australia/Canberra
- date
- nvm install 4.8.4
- rm -rf ~/.sdkman
- curl -s get.sdkman.io > ~/install_gvm.sh
- chmod 775 ~/install_gvm.sh
- ~/install_gvm.sh
- echo "sdkman_auto_answer=true" > ~/.sdkman/etc/config
- source ~/.sdkman/bin/sdkman-init.sh
- GRAILS_VERSION=`grep '^\s*app.grails.version' application.properties | sed -e 's/^\s*app\.grails\.version=//g'
| tr -d "\r"`
- echo "GRAILS_VERSION:$GRAILS_VERSION"
- sdk install grails $GRAILS_VERSION || true
before_script:
- node --version
- npm install
- GRAILS_VERSION_NUMBER=`echo $GRAILS_VERSION | sed -e 's/\.[0-9]*$//g' -e 's/\.//g'
| tr -d "\r"`
- echo "GRAILS_VERSION_NUMBER:$GRAILS_VERSION_NUMBER"
- GRAILS_SETTINGS_FILE="travis_grails_settings_new.groovy"
- if [ "$GRAILS_VERSION_NUMBER" -lt "23" ]; then GRAILS_SETTINGS_FILE="travis_grails_settings_old.groovy";
fi;
- echo "GRAILS_SETTINGS_FILE:$GRAILS_SETTINGS_FILE"
- mkdir -p ~/.grails; wget -q -O ~/.grails/settings.groovy https://raw.githubusercontent.com/AtlasOfLivingAustralia/travis-build-configuration/master/$GRAILS_SETTINGS_FILE
- MAVEN_REPO="ala-repo-snapshot"
- APP_VERSION=`grep '^\s*def\s*version' *GrailsPlugin.groovy | sed -e 's/^.*= *"//g'
| sed -e 's/".*$//g' | tr -d "\r"`
- echo $APP_VERSION | grep -q "\-SNAPSHOT"; if [ "$?" = "1" ]; then MAVEN_REPO="ala-repo-release";
fi;
- echo "APP_VERSION:$APP_VERSION"
- echo "MAVEN_REPO:$MAVEN_REPO"
script:
- node_modules/karma/bin/karma start karma.conf.js --single-run --browsers PhantomJS
- grails clean && grails refresh-dependencies --non-interactive && grails test-app --non-interactive && grails prod maven-install --non-interactive && grails prod maven-deploy --repository=$MAVEN_REPO --non-interactive
env:
global:
- secure: pUfSJ7e11vDOMLvU6aLmDKIzfHZyT7Z7rhtl+xCKRafVHAMkG12/qLKDyjUWDSYKqxAApnOsqEK/M8UEsmuemtBoAssIgoCDq6uU3KBH0rCDG9XdpzF5Hie3qQCIRIr73LOjaJ4PzpMReAULPRn8Hx+zktxBwTbgfBAifxM+e5txdJKhVmI9/A1r9NZpiFHhB/yOMCfzA3lm633uyqWg+m0wc2J9EMGgW/XKCRGwiQJRk+LBNLNSCCh/fqbko2KIuaIzaX/pK1CATREHgKAh2qiW79yQ1C5yIfrmRf+uDu8j9aL4HFzIxWU3mP91KUp6ikFkzgGkWvWvw89EV0nQmVVuP52EK5bpu77bAiGZdviccd+YToHNerrArBnn/jfOMBxAF8Vd7Zjtb4TVEmT5dQgcG1qMeaVi7oGXAiyJ519+hc8Qtnie8o4TmKH34DCbl0qkybz9IRT0W7S/VzdST/Excmco2TqE+siQTvaIKGKmGLMNulJgTA5KGyDJoDbxgRlsr3kjXR24WBuw+JrxjS+Oa6EprfxZhTcFiNPxQagOkCGNWYQGb8xuJcQtCW4n5UAi9y0rWig268RhoT55/oL5MV5eXexc1RzU79mr+T7rRw4AVB9LiRZ0YspOHVSRM/MyzqFXZim4dWhm7+WMm1D7eR+SJeHL0t4CULIH47Q=
- secure: kdRGe7YzHnythBFmgpMi4pMMK6o0vA9GQKZOuESFyQdO6vNwYwI/3HXyTrmNcuA//Gk2PXW7G1HVOLYLXSfZzwfEvTY5NgguRlmvc2zXgFPRpVFT3uOCG+kAJBQowc7iUd4weBPHbFz6CMR4sQ2Dj/NdoE8ZUCkF+DDhFK4hRzaOG8U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