-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
50 lines (42 loc) · 1.2 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
language: scala
scala:
- 2.13.1
- 2.12.11
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.coursier
install:
- pip install --user codecov
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.8.5
- gem install asciidoctor
script:
# - sbt clean coverage test
- if [[ "$TRAVIS_SCALA_VERSION" == 2.12.* ]];
then
sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport && bash <(curl -s https://codecov.io/bash);
else
sbt ++$TRAVIS_SCALA_VERSION clean test makeSite && echo "Skipping code coverage reporting and docs on 2.13";
fi
jdk:
- oraclejdk12
- openjdk12
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: target/site
on:
branch: master
condition: $TRAVIS_SCALA_VERSION = 2.13.1