forked from synthetichealth/synthea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (24 loc) · 893 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
language: java
jdk:
- oraclejdk8
# gradle projects have "gradle assemble" and "gradle check" run automatically
# so a script setting is not required to verify the code compiles or run tests
# script:
# from: https://docs.travis-ci.com/user/languages/java/#Caching
# A peculiarity of dependency caching in Gradle means that
# to avoid uploading the cache after every build
# you need to add the following lines to your .travis.yml:
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- travis_wait ./gradlew check
after_success:
- bash <(curl -s https://codecov.io/bash)
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh
notifications:
slack: mitrecorp:HNikOgsZALD9WxBZh5oSJve9