Use language:R
This commit is contained in:
parent
55ec3898a2
commit
97804e042f
40
.travis.yml
40
.travis.yml
|
@ -1,45 +1,17 @@
|
|||
language: c
|
||||
sudo: false
|
||||
language: R
|
||||
cache:
|
||||
packages: []
|
||||
directores: [vendor/bundle]
|
||||
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- r-packages-precise
|
||||
packages:
|
||||
- r-base-dev
|
||||
- r-recommended
|
||||
- libxml2-dev
|
||||
|
||||
env:
|
||||
global:
|
||||
- R_LIBS_USER=$HOME/R/library
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $R_LIBS_USER
|
||||
- vendor/bundle
|
||||
- $HOME/.ccache
|
||||
|
||||
install:
|
||||
# Install binary pandoc from Rstudio
|
||||
- mkdir $HOME/pandoc
|
||||
- curl -O https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.12.3.zip
|
||||
- unzip -j pandoc-1.12.3.zip pandoc-1.12.3/linux/debian/x86_64/pandoc
|
||||
-d $HOME/pandoc
|
||||
- chmod +x $HOME/pandoc/pandoc
|
||||
- rm pandoc-1.12.3.zip
|
||||
- export PATH="$HOME/pandoc:$PATH"
|
||||
- pandoc --version
|
||||
|
||||
# Install ruby gems
|
||||
# Install ruby gems
|
||||
before_script:
|
||||
- bundle install --jobs=3 --retry=3 --deployment
|
||||
|
||||
# Install R packages
|
||||
- mkdir -p "$R_LIBS_USER"
|
||||
- Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0L) { install.packages("devtools", repos = "http://cran.rstudio.com") }'
|
||||
- Rscript -e 'devtools::install_github("hadley/devtools")'
|
||||
- Rscript -e 'devtools::install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
|
||||
|
||||
script: bundle exec jekyll build
|
||||
|
||||
after_success:
|
||||
|
|
Loading…
Reference in New Issue