forked from synthetichealth/synthea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (28 loc) · 1.03 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
language: java
jdk:
- oraclejdk8
- oraclejdk10
# 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:
- ./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
webhooks:
urls:
- https://synthea.zulipchat.com/api/v1/external/travis?stream=development&topic=build-status&api_key=XQ5SyfiEkfgjoT9uelJboOTQQOsKYCV2