From 216ec23a3e8895d6b3ee36ee570fc4c078c9c8ac Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 2 Mar 2017 15:47:10 -0600 Subject: [PATCH] Start AppVeyor See #2 --- README.md | 4 ++-- appveyor.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index af5f325..280839b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # stanirs Package for working with fNIRS files -Master Builds: [![Build Status](https://travis-ci.org/cibsr/stanirs.svg?branch=master)](https://travis-ci.org/cibsr/stanirs) +Master Builds: [![Build Status](https://travis-ci.org/cibsr/stanirs.svg?branch=master)](https://travis-ci.org/cibsr/stanirs) [![Build status](https://ci.appveyor.com/api/projects/status/27c43hiyr58wuenc/branch/master?svg=true)](https://ci.appveyor.com/project/andkov/stanirs/branch/master) -Dev Builds: [![Build Status](https://travis-ci.org/cibsr/stanirs.svg?branch=dev)](https://travis-ci.org/cibsr/stanirs) +Dev Builds: [![Build Status](https://travis-ci.org/cibsr/stanirs.svg?branch=dev)](https://travis-ci.org/cibsr/stanirs) [![Build status](https://ci.appveyor.com/api/projects/status/27c43hiyr58wuenc/branch/dev?svg=true)](https://ci.appveyor.com/project/andkov/stanirs/branch/dev) diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..5208138 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,44 @@ +# DO NOT CHANGE the "init" and "install" sections below +cache: + - C:\RLibrary + +# Download script file from GitHub +init: + ps: | + $ErrorActionPreference = "Stop" + Invoke-WebRequest https://raw.githubusercontent.com/jimhester/r-appveyor/patch-1/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: + - 7z a failure.zip *.Rcheck\* + - appveyor PushArtifact failure.zip + +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