forked from playframework/play-socket.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (47 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
language: scala
services:
- xvfb
addons:
chrome: stable
apt:
packages:
- unzip
- dbus-x11
scala:
- 2.13.1
- 2.12.10
env:
global:
- CHROME_BIN=/usr/bin/google-chrome
- DBUS_SESSION_BUS_ADDRESS=/dev/null
matrix:
- TRAVIS_JDK=8
- TRAVIS_JDK=11
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version
before_script:
# Chrome version format can be x.x.x or x.x.x.x. We just want the three first numbers
- chrome_version=$(google-chrome --version | grep -oP "(\d{1,}\.\d{1,}\.\d{1,})")
# This will give us the chromedriver version that is compatible with the installed chrome
- chromedriver_version=$(curl "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${chrome_version}")
- mkdir -p $HOME/tmp/bin
- pushd $HOME/tmp/bin && wget "https://chromedriver.storage.googleapis.com/${chromedriver_version}/chromedriver_linux64.zip" && unzip chromedriver_linux64.zip && popd
- chmod -vv +x $HOME/tmp/bin/*
- export PATH=$HOME/tmp/bin:$PATH
script: sbt ++$TRAVIS_SCALA_VERSION test headerCheck test:headerCheck scalafmtSbtCheck
cache:
directories:
- $HOME/.ivy2
- $HOME/.jabba/jdk
- $HOME/.sbt
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.ivy2/cache/com.lightbend.play/play-socket-io*
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d2c8a242a2615f659595
on_success: always
on_failure: always