-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 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
31
32
33
34
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
dist: bionic
language: R
cache: packages
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: osx
script:
- Rscript -e "if (!requireNamespace('devtools', quietly = TRUE)) install.packages(c('devtools', 'remotes'), repos = 'https://cloud.r-project.org', quiet = TRUE)"
# for which_last
- Rscript -e "if (!requireNamespace('hutilscpp', quietly = TRUE) || packageVersion('hutilscpp') < '0.4.0') remotes::install_github('hughparsonage/hutilscpp', quick = FALSE, args = '')"
- Rscript -e "devtools::install(quiet = TRUE)"
- R CMD build .
- travis_wait 80 R CMD check *tar.gz --no-manual
after_success:
- Rscript -e "cat(crayon::green(as.character(Sys.time())), '\n')"
- travis_wait 80 Rscript -e 'covr::codecov(quiet = FALSE)'
after_failure:
- travis_wait 80 Rscript -e "devtools::test()"