forked from typelevel/cats-effect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.22 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
dist: xenial
sudo: false
language: scala
matrix:
include:
- jdk: openjdk8
scala: 2.13.0
env: COVERAGE=
# We want the latest stable Scala last so sbt-travisci makes it the default
- jdk: openjdk8
scala: 2.12.9
env: COVERAGE=
- jdk: openjdk11
scala: 2.12.9
env: COVERAGE=
install:
- rvm install 2.6
# In case we want to reinstall all Ruby dependencies from scratch:
# rvm --force gemset delete 2.6@cats-effect
- rvm use 2.6@cats-effect --default --create
- bundle install --system --gemfile=site/Gemfile
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
- $HOME/.rvm