-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
36 lines (29 loc) · 905 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
sudo: false
branches:
only:
- master
cache:
directories:
- $HOME/.sbt
- $HOME/.ivy2
before_cache:
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- rm -r -f $HOME/.ivy2/local/
language: scala
script:
- sbt formatAll
- if [[ -n $(git status -s) ]]; then git status && echo 'You need to format your code!' && exit 1; fi
- ./.bintray_setup_credentials.sh
- sbt clean compile package || exit 1
- sbt "set coverageEnabled in monitoring := true" test || exit 1
- sbt scripted || exit 1
- sbt monitoring/coverageReport monitoring/codacyCoverage
jdk:
- oraclejdk8
notifications:
email:
after_success:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ -n "$TRAVIS_TAG" -o "$TRAVIS_BRANCH" == "master" ]; then sbt publish; fi
- bash <(curl -s https://codecov.io/bash)