-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
42 lines (38 loc) · 922 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
branches:
only:
- master
language: r
pandoc_version: 2.2
sudo: false
dist: trusty
cache:
packages: true
directories:
- $HOME/.TinyTeX
before_install:
- wget -qO- https://github.com/yihui/tinytex/raw/master/tools/download-travis-linux.sh | sh
env:
global:
- R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
matrix:
include:
- r: devel
- r: release
after_success:
- Rscript -e 'covr::codecov()'
- R CMD INSTALL $PKG_TARBALL
- Rscript -e 'lintr::lint_package()'
before_deploy:
- R CMD INSTALL .
- cd inst/examples
- Rscript -e "bookdown::render_book('index.Rmd', 'jayhawkdown::thesis_pdf')"
- Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
- cd ../..
deploy:
provider: pages
local_dir: inst/examples/_book
skip_cleanup: true
github-token: $GITHUB_PAT
on:
branch: master
- r: oldrel