From 1e81b1c40a002a957b7e3f120b68fcb16a472c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Sun, 5 Jun 2016 22:40:54 +0100 Subject: [PATCH] Travis and Appveyor config --- .travis.yml | 30 ++++++++++++++++++++++++++++++ appveyor.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6ccf3fa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +## Sample .travis.yml file for use with metacran/r-builder +## See https://github.com/metacran/r-builder for details. + +language: c +sudo: required + +before_install: + - curl -OL https://raw.githubusercontent.com/metacran/r-builder/master/pkg-build.sh + - chmod 755 pkg-build.sh + - ./pkg-build.sh bootstrap + +install: + - ./pkg-build.sh install_deps + +script: + - ./pkg-build.sh run_tests + +after_failure: + - ./pkg-build.sh dump_logs + +notifications: + email: + on_success: change + on_failure: change + +env: + matrix: + - RVERSION=oldrel + - RVERSION=release + - RVERSION=devel diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..7d1c45b --- /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 + +on_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