forked from joshuaulrich/TTR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (38 loc) · 1.04 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
# Run Travis CI for R using https://eddelbuettel.github.io/r-travis/
language: c
matrix:
include:
- name: "Linux tests"
os: linux
dist: trusty
sudo: required
- name: "macOS tests"
os: osx
osx_image: xcode8
- name: "Linux tests conditional Suggests"
os: linux
dist: trusty
sudo: required
env: _R_CHECK_DEPENDS_ONLY_=true
before_install:
- curl -OLs https://eddelbuettel.github.io/r-travis/run.sh && chmod 0755 run.sh
# add our launchpad repo which has (inter alia) the newest QuantLib
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository -y ppa:edd/misc;
fi
- ./run.sh bootstrap
install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
./run.sh install_aptget r-cran-runit r-cran-quantmod r-cran-curl;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
./run.sh install_r RUnit quantmod curl;
fi
script:
- ./run.sh run_tests
after_failure:
- ./run.sh dump_logs
notifications:
email:
on_success: change
on_failure: change