-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
28 lines (21 loc) · 959 Bytes
/
.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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
#language: R
#cache: packages
#script:
# - travis_wait 120 R -e 'rmarkdown::render("appendix/appendixA.Rmd")'
# - travis_wait 60 R -e 'rmarkdown::render("appendix/appendixB.Rmd")'
# - R -e 'rmarkdown::render("manuscripts/manuscript.Rmd")'
## Travis lacks enough memory to handle appendices
## test that all .Rmd files can render
# - R -e 'lapply(list.files(pattern=".*.Rmd", recursive=TRUE), rmarkdown::render)'
## Optionally check linting
# - R -e 'lapply(list.files(pattern=".*.Rmd", recursive=TRUE), function(x) testthat::expect_length(lintr::lint(x),0))'
## Alternate recipe: use Docker instead of R travis
sudo: required
services:
- docker
script:
# Test on locked version
- docker run -ti -v $(pwd):/home/rstudio/repo -w /home/rstudio/repo \
rocker/verse:3.4.3 \
R -e 'lapply(list.files(pattern=".*.Rmd", recursive=TRUE), rmarkdown::render)'