Start updating travis build script
This commit is contained in:
parent
0d84ea2a86
commit
3774e95a4a
49
.travis.yml
49
.travis.yml
|
@ -1,32 +1,33 @@
|
|||
language: c
|
||||
sudo: required
|
||||
sudo: false
|
||||
|
||||
before_install:
|
||||
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
|
||||
- chmod 755 ./travis-tool.sh
|
||||
- ./travis-tool.sh bootstrap
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- r-packages-precise
|
||||
packages:
|
||||
- r-base-dev
|
||||
- r-recommended
|
||||
- pandoc
|
||||
- libxml2-dev
|
||||
|
||||
env:
|
||||
global:
|
||||
- R_LIBS_USER=~/R/library
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $R_LIBS_USER
|
||||
- vendor/bundle
|
||||
|
||||
install:
|
||||
# Install binary pandoc from Rstudio
|
||||
- export PATH="$HOME/pandoc:$PATH"
|
||||
- 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
|
||||
- pandoc --version
|
||||
- rm pandoc-1.12.3.zip
|
||||
- bundle install --jobs=3 --retry=3
|
||||
- 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::update_packages("devtools", repos = "http://cran.rstudio.com")'
|
||||
- Rscript -e 'devtools::install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
|
||||
|
||||
# Install jekyll
|
||||
- travis_retry gem install mime-types
|
||||
- travis_retry gem install jekyll -v 2.5.3
|
||||
|
||||
# Install R packages
|
||||
- ./travis-tool.sh r_binary_install knitr png
|
||||
- ./travis-tool.sh r_install broom purrr jsonlite ggplot2 dplyr tidyr pryr stringr htmlwidgets htmltools microbenchmark
|
||||
- ./travis-tool.sh github_package hadley/bookdown garrettgman/DSR hadley/readr gaborcsardi/rcorpora hadley/stringr
|
||||
|
||||
script: jekyll build
|
||||
script: bundle exec jekyll build
|
||||
|
||||
after_success:
|
||||
- cp -r figures/ _site/figures
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
Package: r4ds
|
||||
Title: R for data science.
|
||||
Version: 0.1
|
||||
Authors@R: c(
|
||||
person("Hadley", "Wickham", , "hadley@rstudio.com", c("aut", "cre")),
|
||||
person("Garrett", "Grolemund", , "garrett@rstudio.com", "aut")
|
||||
)
|
||||
Depends: R (>= 3.1.0)
|
||||
URL: https://github.com/hadley/r4ds
|
||||
Imports:
|
||||
bookdown,
|
||||
broom,
|
||||
dplyr,
|
||||
DSR,
|
||||
ggplot2,
|
||||
htmltools,
|
||||
htmlwidgets,
|
||||
jsonlite,
|
||||
knitr,
|
||||
microbenchmark,
|
||||
png,
|
||||
pryr,
|
||||
purrr,
|
||||
rcorpora,
|
||||
stringr,
|
||||
tidyr
|
||||
Remotes:
|
||||
hadley/bookdown,
|
||||
garrettgman/DSR,
|
||||
hadley/readr,
|
||||
gaborcsardi/rcorpora,
|
||||
hadley/stringr
|
|
@ -0,0 +1,5 @@
|
|||
source 'https://rubygems.org'
|
||||
gem 'mime-types'
|
||||
gem 'jekyll', '~>2.5.3'
|
||||
gem 'dpl'
|
||||
gem 'jmespath'
|
|
@ -0,0 +1,73 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
blankslate (2.1.2.4)
|
||||
classifier-reborn (2.0.4)
|
||||
fast-stemmer (~> 1.0)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.9.1.1)
|
||||
colorator (0.1)
|
||||
dpl (1.8.7)
|
||||
execjs (2.6.0)
|
||||
fast-stemmer (1.0.2)
|
||||
ffi (1.9.10)
|
||||
jekyll (2.5.3)
|
||||
classifier-reborn (~> 2.0)
|
||||
colorator (~> 0.1)
|
||||
jekyll-coffeescript (~> 1.0)
|
||||
jekyll-gist (~> 1.0)
|
||||
jekyll-paginate (~> 1.0)
|
||||
jekyll-sass-converter (~> 1.0)
|
||||
jekyll-watch (~> 1.1)
|
||||
kramdown (~> 1.3)
|
||||
liquid (~> 2.6.1)
|
||||
mercenary (~> 0.3.3)
|
||||
pygments.rb (~> 0.6.0)
|
||||
redcarpet (~> 3.1)
|
||||
safe_yaml (~> 1.0)
|
||||
toml (~> 0.1.0)
|
||||
jekyll-coffeescript (1.0.1)
|
||||
coffee-script (~> 2.2)
|
||||
jekyll-gist (1.3.5)
|
||||
jekyll-paginate (1.1.0)
|
||||
jekyll-sass-converter (1.3.0)
|
||||
sass (~> 3.2)
|
||||
jekyll-watch (1.3.0)
|
||||
listen (~> 3.0)
|
||||
jmespath (1.1.3)
|
||||
kramdown (1.9.0)
|
||||
liquid (2.6.3)
|
||||
listen (3.0.4)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9)
|
||||
mercenary (0.3.5)
|
||||
mime-types (2.6.2)
|
||||
parslet (1.5.0)
|
||||
blankslate (~> 2.0)
|
||||
posix-spawn (0.3.11)
|
||||
pygments.rb (0.6.3)
|
||||
posix-spawn (~> 0.3.6)
|
||||
yajl-ruby (~> 1.2.0)
|
||||
rb-fsevent (0.9.6)
|
||||
rb-inotify (0.9.5)
|
||||
ffi (>= 0.5.0)
|
||||
redcarpet (3.3.3)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.4.19)
|
||||
toml (0.1.2)
|
||||
parslet (~> 1.5.0)
|
||||
yajl-ruby (1.2.1)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
dpl
|
||||
jekyll (~> 2.5.3)
|
||||
jmespath
|
||||
mime-types
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.6
|
Loading…
Reference in New Issue