diff --git a/.Rbuildignore b/.Rbuildignore index adb6946..2e64761 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,5 @@ ^tags$ ^README.Rmd$ ^Makefile$ +^.travis.yml$ +^appveyor.yml$ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6e15445 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +# Sample .travis.yml for R projects from https://github.com/craigcitro/r-travis + +language: c + +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 + +install: + - ./travis-tool.sh install_deps + +script: ./travis-tool.sh run_tests + +after_failure: + - ./travis-tool.sh dump_logs + +notifications: + email: + on_success: change + on_failure: change diff --git a/README.Rmd b/README.Rmd index c04c9f6..0cddcca 100644 --- a/README.Rmd +++ b/README.Rmd @@ -8,6 +8,9 @@ knitr::opts_chunk$set( # Download logs from the RStudio CRAN mirror +[![Linux Build Status](https://travis-ci.org/metacran/cranlogs.png?branch=master)](https://travis-ci.org/metacran/cranlogs) +[![Windows Build status](https://ci.appveyor.com/api/projects/status/github/metacran/cranlogs)](https://ci.appveyor.com/project/metacran/cranlogs) + [RStudio](http://www.rstudio.com) publishes the download logs from their CRAN package mirror daily at http://cran-logs.rstudio.com. diff --git a/README.md b/README.md index 2aead30..36d771a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ # Download logs from the RStudio CRAN mirror +[![Linux Build Status](https://travis-ci.org/metacran/cranlogs.png?branch=master)](https://travis-ci.org/metacran/cranlogs) +[![Windows Build status](https://ci.appveyor.com/api/projects/status/github/metacran/cranlogs)](https://ci.appveyor.com/project/metacran/cranlogs) + [RStudio](http://www.rstudio.com) publishes the download logs from their CRAN package mirror daily at http://cran-logs.rstudio.com. @@ -23,7 +26,7 @@ install_github("metacran/cranlogs") #> Downloading github repo metacran/cranlogs@master #> Installing cranlogs #> '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL \ -#> '/private/var/folders/ws/7rmdm_cn2pd8l1c3lqyycv0c0000gn/T/Rtmp3q7C6N/devtools4bd674d7d759/metacran-cranlogs-b7335a7' \ +#> '/private/var/folders/ws/7rmdm_cn2pd8l1c3lqyycv0c0000gn/T/RtmpIjFWKM/devtools4fbd40d81d71/metacran-cranlogs-5031c91' \ #> --library='/Library/Frameworks/R.framework/Versions/3.1/Resources/library' \ #> --install-tests ``` diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..f8698f3 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,41 @@ +# DO NOT CHANGE the "init" and "install" sections below + +# Download script file from GitHub +init: + ps: | + $ErrorActionPreference = "Stop" + Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1" + Import-Module '..\appveyor-tool.ps1' + +install: + ps: Bootstrap + +# Adapt as necessary starting from here + +build_script: + - travis-tool.sh install_deps + +test_script: + - travis-tool.sh run_tests + +after_failure: + - travis-tool.sh dump_logs + +artifacts: + - path: '*.Rcheck\**\*.log' + name: Logs + + - path: '*.Rcheck\**\*.out' + name: Logs + + - path: '*.Rcheck\**\*.fail' + name: Logs + + - path: '*.Rcheck\**\*.Rout' + name: Logs + + - path: '\*_*.tar.gz' + name: Bits + + - path: '\*_*.zip' + name: Bits