-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (33 loc) · 962 Bytes
/
.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
language: scala
sudo: false
scala:
- "2.13.1"
# - "2.12.10"
jdk:
- openjdk8
# - openjdk11
# - oraclejdk8
# build all PRs and only master branch and branches starting with either
# 'deploy-*', 'deploy/*', 'ci-*' or 'ci/*'
branches:
only:
- master
- /^(?i:deploy)(-|\/).*$/
- /^(?i:ci)(-|\/).*$/
# cache local ivy cache, but delete properties and lock files beforehand
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
# if build is a pull request and origin branch starts with doc/ skip the build (successfully)
before_install:
- if [[ "$TRAVIS_PULL_REQUEST" != "false" && "$TRAVIS_PULL_REQUEST_BRANCH" == doc/* ]]; then exit 0; fi
# build script (sbt test)
script:
- sbt ++$TRAVIS_SCALA_VERSION! \
coverage test \
coverageAggregate \
codacyCoverage