-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
51 lines (41 loc) · 1.98 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
51
language: scala
sudo: required
services:
- docker
scala:
- 2.11.12
- 2.12.10
- 2.13.0
jdk:
- openjdk8
branches:
only:
- master
before_script:
- if [ $TRAVIS_PULL_REQUEST = 'false' ]; then git checkout -qf $TRAVIS_BRANCH; fi
script:
- |
if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
if [ $RELEASE_ON_PUSH = 'false' ]; then
docker-compose run --rm sbt ++$TRAVIS_SCALA_VERSION clean coverage "testOnly * -- -l blobstore.IntegrationTest" coverageReport
else
docker-compose run --rm sbt ++$TRAVIS_SCALA_VERSION clean coverage "testOnly * -- -l blobstore.IntegrationTest" coverageReport
fi
else
docker-compose run --rm sbt ++$TRAVIS_SCALA_VERSION clean coverage "testOnly * -- -l blobstore.IntegrationTest" coverageReport
fi
- find $HOME/.sbt -name "*.lock" | xargs rm || echo "failed"
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm || echo "failed"
- docker-compose rm -svf
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION"
after_success:
- find $HOME/.sbt -name "*.lock" | xargs rm || echo "failed"
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm || echo "failed"
- docker-compose rm -svf
- bash <(curl -s https://codecov.io/bash) -cF "scala-$TRAVIS_SCALA_VERSION" -r $TRAVIS_REPO_SLUG -t $CODECOV_TOKEN
env:
global:
- secure: Me93VBnyKt2XKJi3kTqVs0vP1QbI928ulmZnk2XsrHqzZKyZrfNhuSk7PNIFjgS7EpULkJr0pi1IHN/W1CKPSp4WFFK9isb+5hoz04VCvkkVVeEqtaRATSgDvdCs0F9Zfw1tqKyWmITI/XwR2R3eIB/jhdaQU7kCeUjayXcVeRhVLcjXyy9gqZJFeByjIzXCGJuk4O4pFFuqyojQPaBiSlcLF/T+0VWb/5WnIoj4yQ4CmVt8yP9SKRAJwqwL/SwWm7jNBDkkaDIE2o7xyG2yzgHKfa2e4aCIR1R8dzkEjdFNIBc14OLojTnewbSgq0Mv6snLaJgjtaZFlcP8HnIMGKjQLWudPZwZjkHfZAGHJSD9FPhbV/JGpfNkKNLhmOvD0yaDkBDLcticYLoH6gI4yNaLBhy3Yqx0ncDbYhCXGH40crV0y9qP1bckC8ovavlvIcaTgaICpsUI4vPOlV+NiG1pl1or6K+GfXtaVXxmmXY22+NFySS++VHHsB4O0GqNz7N/Tvxz8dFzCC1P8DX/ZfCS5hvHY4JmBHyl6UxtwBuEyRpW3FNaHXV6hoXskXgVeNgSofH91OP1bFs6Iv1vLauB+xFGd3vaPJFIENEtlMj6PQ/IEEBNx7zTs4vigWfATonl6cPr7h8/CgZIkQMy60nQObl3+HJHncDe62MMXoY=