forked from twitter/util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (33 loc) · 1.19 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
# container-based build
sudo: false
language: scala
env:
- JAVA_OPTS="-DSKIP_FLAKY=true -Dsbt.log.noformat=true"
# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2
- $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION
- $HOME/.dodo
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
scala:
- 2.11.11
- 2.12.4
jdk:
- oraclejdk8
notifications:
slack:
secure: E0knpocRWQT1YI4TgAZGxS7Xoe15wWZ5fbJsi0nfMhxHSlngrnxAknN60qovPa2J8R/opryX/0jwaUF2/5RPYVxf6ARNI428WkrltxctQeCugN8j5XqpBqXLR/+GPetqFe9WwF6ycg3bmThsXnap6/xNB75zMWj+2E1CYTqwpA0=
before_script:
# default $SBT_OPTS is irrelevant to sbt lancher
- unset SBT_OPTS
- travis_retry ./sbt --error ++$TRAVIS_SCALA_VERSION update
script:
- travis_retry ./sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport
- if [[ "$TRAVIS_SCALA_VERSION" == 2.11* ]]; then travis_retry ./sbt ++$TRAVIS_SCALA_VERSION "project util-intellij" coverage test coverageReport; fi
- ./sbt ++$TRAVIS_SCALA_VERSION coverageAggregate
after_success:
- bash <(curl -s https://codecov.io/bash)