forked from OHDSI/Achilles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 1.09 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
language: R
cache: packages
sudo: false
warnings_are_errors: false
r_packages:
- covr
- drat
r_github_packages:
- OHDSI/DatabaseConnector
before_install:
- Rscript -e 'update.packages(ask = FALSE)'
- export LD_LIBRARY_PATH=$JAVA_HOME:$LD_LIBRARY_PATH
script:
- |
R CMD build .
travis_wait 30 R CMD check Achilles*tar.gz
notifications:
recipients:
email:
on_success: change
on_failure: change
after_success:
- travis_wait 30 Rscript -e 'library(covr);codecov()'
# Rebuild docker container
- curl --data "build=true" -X POST https://registry.hub.docker.com/u/ohdsi/broadsea-methodslibrary/trigger/f0b51cec-4027-4781-9383-4b38b42dd4f5/
# Rebuild drat repo
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh
after_failure:
- find *Rcheck -name '*.fail' -print -exec cat '{}' \;
env:
global:
secure: a1Rdhif0jhUZRpNqLzIYbEBCM/+VbbTJhT3/vfxZKy+PiLVQixi/ARqvA581p/JRfsA3d9koWynxy6+karOKw94b27+Uaos8ds85noObq3enND+d/FNVqDA9mn9l0tDFioeKR7T2SQlyWF1LIWtKzj9L21/EjNSy8mi0btiiJaU=