forked from Arkilog/grails-shiro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (45 loc) · 1.42 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
env:
global:
- TERM=dumb
- GRAILS_HOME=/home/travis/.sdkman/candidates/grails/current/
jdk:
- oraclejdk7
- oraclejdk8
before_cache:
- find ~/.gradle/caches/ -type f -name "*.lock" -delete
cache:
directories:
- ~/.gradle/caches/
- ~/.gradle/wrapper/
- ~/.sdkman/
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 '^\s*grailsVersion' ./shiro3/grails-shiro/gradle.properties | sed -e 's/^grailsVersion=//g' | tr -d "\r"`
- echo "GRAILS_VERSION:$GRAILS_VERSION"
- sdk install grails $GRAILS_VERSION || true
- cd ./shiro3
- chmod +x ./gradlew
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script: >
./gradlew clean
:grails-shiro:test
:cli-tests:test
:wildcard-realm:integrationTest
:native-realm-only:integrationTest
:native-session:integrationTest
:spring-filter:integrationTest
:annotation-test:integrationTest -i |
grep -v "Gradle compiler daemon" |
grep -v "^Tasks to be executed:" |
grep -v "^Resolved versions" |
grep -v "^Applying dependency management to configuration" |
grep -v "^Using version" |
grep -v "^Downloading"; exit `echo "${PIPESTATUS[0]}"`