-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
34 lines (29 loc) · 936 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
# whitelist
branches:
only:
- master
# environment variables
env:
- R_LIBS_USER=~/R
# install dependencies
install:
- sudo apt-add-repository -y ppa:marutter/rdev
- sudo apt-get update
- curl -L -O https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
- sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb
- which pandoc
- which pandoc-citeproc
- pandoc --version
- sudo apt-get install r-base
- sudo apt-get install tree
- "[ ! -d ~/R ] && mkdir ~/R"
- R --version
- Rscript -e '.libPaths(); sessionInfo()'
- Rscript -e 'install.packages(c("devtools", "roxygen2", "revealjs", "latticeExtra", "gdata"), type = "source", repos = "http://cran-r.c3sl.ufpr.br/")'
- Rscript -e 'devtools::install_github("yihui/knitr")'
- Rscript -e 'devtools::install_github("rstudio/rmarkdown")'
# build site
before_script:
- rm -rf figures
script:
- Rscript -e 'rmarkdown::render_site()'