forked from typelevel/cats-effect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.01 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
sudo: false
language: scala
matrix:
include:
- jdk: oraclejdk8
scala: 2.11.12
env: COVERAGE=coverage
- jdk: openjdk11
scala: 2.11.12
env: COVERAGE=
- jdk: oraclejdk8
scala: 2.12.8
env: COVERAGE=
- jdk: oraclejdk8
scala: 2.13.0-M5
env: COVERAGE=
- jdk: openjdk11
scala: 2.12.8
env: COVERAGE=
script:
- export SBT_PROFILE=$COVERAGE
- sbt ++$TRAVIS_SCALA_VERSION $COVERAGE ci
- |
if [[ "$TRAVIS_SCALA_VERSION" =~ "2\.12\." ]]; then
sbt ++$TRAVIS_SCALA_VERSION microsite/makeMicrosite
fi
after_success:
- |
if [ "$COVERAGE" = "coverage" ]; then
export SBT_PROFILE=$COVERAGE
sbt ++$TRAVIS_SCALA_VERSION coverageAggregate coverageReport
bash <(curl -s https://codecov.io/bash)
fi
before_cache:
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.coursier/cache
- $HOME/.sbt