-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
47 lines (39 loc) · 1.36 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
language: scala
env:
global:
- JABBA_HOME=$HOME/.jabba
matrix:
- TRAVIS_JDK=8
- TRAVIS_JDK=11
matrix:
fast_finish: true
allow_failures:
- env: TRAVIS_JDK=11
before_install:
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
install:
# Using ~ makes jabba installs the latest version for that major JDK release
- $JABBA_HOME/bin/jabba install "adopt@~1.${TRAVIS_JDK}.0-0"
- unset _JAVA_OPTIONS
# Using ~ with ls works in a similar way to jabba install described above
- export JAVA_HOME="$JABBA_HOME/jdk/$(jabba ls "adopt@~1.${TRAVIS_JDK}.0-0" | head -1)" && export PATH="$JAVA_HOME/bin:$PATH" && java -Xmx32m -version
script:
# Test with the defaults
- sbt new file://$(pwd) --name=hello && pushd hello && sbt test && popd
# Test with custom name/organization to ensure templating is done correctly
- sbt new file://$(pwd) --name=smello --organization=org.eggsample && cd smello && sbt test
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
- "$HOME/.jabba/jdk"
before_cache:
# Delete all ivydata files since ivy touches them on each build
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/2aa0aeda88d31fe293d4
on_success: change
on_failure: always
on_start: never