Permalink
Browse files

Add Travis and Appveyor testing, #2

  • Loading branch information...
1 parent 17c641a commit 452457b8851f8921faa5dd0fb19839d3b8f6a8b8 @gaborcsardi gaborcsardi committed Oct 30, 2014
Showing with 71 additions and 1 deletion.
  1. +2 −0 .Rbuildignore
  2. +21 −0 .travis.yml
  3. +3 −0 README.Rmd
  4. +4 −1 README.md
  5. +41 −0 appveyor.yml
View
@@ -1,3 +1,5 @@
^tags$
^README.Rmd$
^Makefile$
+^.travis.yml$
+^appveyor.yml$
View
@@ -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
View
@@ -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.
View
@@ -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
```
View
@@ -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

0 comments on commit 452457b

Please sign in to comment.