-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (32 loc) · 1.06 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
# whitelist
branches:
only:
- master
- gh-pages
# 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://download1.rstudio.org/rstudio-0.99.892-amd64-debian.tar.gz
- tar -zxvf rstudio-0.99.892-amd64-debian.tar.gz
- sudo cp rstudio-0.99.892/bin/pandoc/pandoc /usr/local/bin/pandoc
- sudo cp rstudio-0.99.892/bin/pandoc/pandoc-citeproc /usr/local/bin/pandoc-citeproc
- 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"), 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()'