|
| 1 | +#---------------------------------------------------------------- |
| 2 | +# AppVeyor CI for R Packages |
| 3 | +# https://github.com/krlmlr/r-appveyor |
| 4 | +# Validator: https://ci.appveyor.com/tools/validate-yaml |
| 5 | +#---------------------------------------------------------------- |
| 6 | +environment: |
| 7 | + _R_CHECK_FORCE_SUGGESTS_: false |
| 8 | + USE_RTOOLS: true |
| 9 | + |
| 10 | + matrix: |
| 11 | + - R_VERSION: devel |
| 12 | + R_ARCH: x64 |
| 13 | + |
| 14 | + - R_VERSION: devel |
| 15 | + R_ARCH: i386 |
| 16 | + |
| 17 | + - R_VERSION: release |
| 18 | + R_ARCH: x64 |
| 19 | + |
| 20 | +init: |
| 21 | + ps: | |
| 22 | + $ErrorActionPreference = "Stop" |
| 23 | + Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1" |
| 24 | + Import-Module '..\appveyor-tool.ps1' |
| 25 | +install: |
| 26 | + ps: | |
| 27 | + Bootstrap |
| 28 | +
|
| 29 | +cache: |
| 30 | + - C:\RLibrary -> appveyor.yml |
| 31 | + |
| 32 | +build_script: |
| 33 | + - Rscript -e "c(physical = parallel::detectCores(logical = FALSE), logical = parallel::detectCores())" |
| 34 | + - echo Current directory=%CD% |
| 35 | + - travis-tool.sh install_r digest |
| 36 | + - travis-tool.sh install_r beepr, pbmcapply, plyr, progress |
| 37 | + - travis-tool.sh install_r future, doFuture, future.apply, furrr |
| 38 | + - travis-tool.sh install_r shiny |
| 39 | + - travis-tool.sh install_github gaborcsardi/notifier@d92b1b6 |
| 40 | +test_script: |
| 41 | + - travis-tool.sh run_tests |
| 42 | + |
| 43 | +after_test: |
| 44 | + - 7z a all-Rout.zip *.Rcheck\**\*.Rout *.Rcheck\**\*.fail |
| 45 | + |
| 46 | +artifacts: |
| 47 | + - path: '*.Rcheck\**\*.log' |
| 48 | + name: Logs |
| 49 | + |
| 50 | + - path: '*.Rcheck\**\*.out' |
| 51 | + name: Logs |
| 52 | + |
| 53 | + - path: '*.Rcheck\**\*.fail' |
| 54 | + name: Logs |
| 55 | + |
| 56 | + - path: '\*_*.tar.gz' |
| 57 | + name: Bits |
| 58 | + |
| 59 | + - path: '\*_*.zip' |
| 60 | + name: Bits |
| 61 | + |
| 62 | + - path: all-Rout.zip |
| 63 | + name: AllRout |
| 64 | + |
| 65 | +on_failure: |
| 66 | + - 7z a failure.zip *.Rcheck\* |
| 67 | + - appveyor PushArtifact failure.zip |
0 commit comments