forked from eddelbuettel/rpushbullet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (29 loc) · 1.23 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
# Run Travis CI for R using https://eddelbuettel.github.io/r-travis/
language: c
sudo: required
dist: trusty
env:
global:
# condition this on have secure environment variables which PRs off forks do not
# cf https://docs.travis-ci.com/user/environment-variables/
- if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then Run_RPushbullet_Tests="yes"; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then Run_RPushbullet_Tests_All="yes"; fi
before_install:
- curl -OLs https://eddelbuettel.github.io/r-travis/run.sh && chmod 0755 run.sh
- ./run.sh bootstrap
# decrypt the file .rpushbullet.json, cf https://docs.travis-ci.com/user/encrypting-files/
# condition this on have secure environment variables which PRs off forks do not
# cf https://docs.travis-ci.com/user/environment-variables/
- if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then openssl aes-256-cbc -K $encrypted_988d19a907a0_key -iv $encrypted_988d19a907a0_iv -in .rpushbullet.json.enc -out ~/.rpushbullet.json -d; fi
install:
- ./run.sh install_aptget r-cran-curl r-cran-jsonlite
script:
- ./run.sh run_tests
after_failure:
- ./run.sh dump_logs
after_success:
- ./run.sh coverage
notifications:
email:
on_success: change
on_failure: change