Skip to content

Commit

Permalink
use travis for this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Sep 11, 2014
1 parent 19556b4 commit 1a79e44
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .Rbuildignore
@@ -1,3 +1,3 @@
^.*\.Rproj$
^\.Rproj\.user$
^shippable
^\.travis\.yml$
28 changes: 28 additions & 0 deletions .travis.yml
@@ -0,0 +1,28 @@
# it is not really python, but there is no R support on Travis CI yet
language: python

# environment variables
env:
- R_PKG="$(basename $TRAVIS_REPO_SLUG)"

# install dependencies
install:
- sudo apt-add-repository -y "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/"
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
- sudo apt-add-repository -y ppa:marutter/c2d4u
- sudo apt-get update -qq
- sudo apt-get install -qq r-base-dev r-cran-knitr
- "wget -q -O - http://yihui.name/xran/r-config | bash"
- Rscript -e "install.packages('$R_PKG', dep = TRUE')"

# run tests
script:
- cd ..; rm -f *.tar.gz; R CMD build $R_PKG
- R CMD check ${R_PKG}_*.tar.gz --no-manual

# deploy to XRAN
after_success:
- "(wget -q -O - http://yihui.name/xran/r-xran | bash)"

after_failure:
- cd ..; for i in `ls *.Rcheck/00*`; do cat $i; done
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# printr

[![Build Status](https://travis-ci.org/yihui/printr.svg)](https://travis-ci.org/yihui/printr)

This is a companion package to [**knitr**](http://yihui.name/knitr). Its main
purpose is to extend the S3 generic function `knit_print()` in **knitr**, which
is the default value of the chunk option `render`, as explained in the vignette
Expand Down

0 comments on commit 1a79e44

Please sign in to comment.