-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (38 loc) · 1.72 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
os: linux
dist: bionic
language: r
jobs:
include:
- r: release
os: linux
- r: devel
os: linux
- r: release
os: osx
osx_image: xcode9.2
cache: packages
r_packages:
- doMC
r_github_packages:
- jimhester/covr
- jimhester/lintr
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:opencpu/imagemagick; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y libmagick++-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo tlmgr update --self; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo tlmgr install inconsolata; fi
script:
- travis_wait 30 R CMD build .
- travis_wait 60 R CMD check *tar.gz
after_success:
# Codecov
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_R_VERSION_STRING" == "release" ]; then travis_wait 60 Rscript -e 'covr::codecov()'; fi
# Lint
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_R_VERSION_STRING" == "devel" ]; then travis_wait 20 Rscript -e 'lintr::lint_package()'; fi
after_failure:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cat /home/travis/build/Neves-P/DAISIErobustness/DAISIErobustness.Rcheck/00install.out; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cat /home/travis/build/Neves-P/DAISIErobustness/DAISIErobustness.Rcheck/tests/testthat.Rout.fail; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cat /Users/travis/build/Neves-P/DAISIErobustness/DAISIErobustness.Rcheck/00install.out; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cat /Users/travis/build/Neves-P/DAISIErobustness/DAISIErobustness.Rcheck/tests/testthat.Rout.fail; fi