forked from avalcarcel9/rtapas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
114 lines (100 loc) · 3.75 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# 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'
# Added this because appveyor was failing with tibble.
# Probably temporary because CRAN doesn't have binary package
# https://github.com/r-lib/ps/issues/52
environment:
global:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
WARNINGS_ARE_ERRORS: 0
USE_RTOOLS: true
R_CHECK_INSTALL_ARGS: "--install-args=--build --no-multiarch "
matrix:
- R_VERSION: 3.5.0
install:
ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as necessary starting from here
build_script:
- if not exist "C:\rtm" mkdir C:\rtm
- set TMP=C:/rtm
- set TEMP=C:/rtm
- set TMPDIR=C:/rtm
- ps: Invoke-WebRequest https://github.com/stnava/ITKR/releases/download/v0.4.17.5.1/ITKR_0.4.17.5_R3.5.zip -OutFile ".\ITKR.zip"
- Rscript -e "install.packages('ITKR.zip', repos = NULL)"
- rm ITKR.zip
# - git clone https://github.com/stnava/ITKR
# - R CMD INSTALL ITKR
- Rscript -e "x = read.dcf('DESCRIPTION'); x = as.data.frame(x, stringsAsFactors = FALSE); x$Remotes = NULL; write.dcf(x, 'DESCRIPTION');"
# need to move to higher dir because CMake path req
- if not exist "C:\run" mkdir C:\run
- cp -avr * C:\run
# need the tool a level above
- cp ../travis-tool.sh C:\
- cd C:\run
# - ps: Invoke-WebRequest http://ci.appveyor.com/api/buildjobs/tu3s6m73682lhvc1/artifacts/ITKR_0.4.12.3.zip -OutFile ".\ITKR.zip"
# - ps: Invoke-WebRequest https://github.com/muschellij2/ITKR/releases/download/v0.4.12.2/ITKR_0.4.12.2.zip -OutFile ".\ITKR.zip"
# - ls
# - Rscript -e "install.packages('ITKR.zip', repos = NULL)"
# - rm ITKR.zip
# # Install castxml
# - wget -O travis_helpers.sh --no-check-certificate http://bit.ly/travis_helpers
# - cat travis_helpers.sh
# - bash travis_helpers.sh
# - ps: echo '@bash.exe ./travis_helpers.sh %*' | Out-File -Encoding ASCII ./travis_helpers.sh.cmd
# - cat DESCRIPTION
# - travis_helpers.sh drop_remote ITKR
# - cat DESCRIPTION
# setting PATH to be specific - no MinGW overall - just R's
- ps: echo "${PATH}"
- ps: echo "${LD_LIBRARY_PATH}"
# - set LD_LIBRARY_PATH=%LD_LIBRARY_PATH%;C:\Rtools\mingw_64\lib\gcc\x86_64-w64-mingw32\4.9.3\include
# - set PATH=C:\Rtools\bin;C:\Rtools\MinGW\bin;
# - set PATH=%PATH%;C:\Rtools\mingw_64\bin;
# - set PATH=%PATH%;C:\Program Files\Git\cmd;
# - set PATH=%PATH%;"C:\Program Files (x86)\CMake\bin";
# - set PATH=%PATH%;C:\R\bin\i386;
# - set PATH=%PATH%;C:\Program Files\Git\usr\bin
# - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\npm
# - set PATH=%PATH%;C:\Users\appveyor\AppData\Local\Yarn\bin
# - set PATH=%PATH%;C:\Program Files\AppVeyor\BuildAgent\
# - set PATH=%PATH%;C:\Windows\system32
# - set PATH=%PATH%;C:\Windows
# - set PATH=%PATH%;C:\Windows\System32\Wbem
# - set PATH=%PATH%;C:\Windows\System32\WindowsPowerShell\v1.0\
# - set PATH=%PATH%;C:\Program Files\7-Zip
- travis-tool.sh install_deps
test_script:
- R CMD INSTALL --build --no-multiarch .
# - travis-tool.sh run_tests
- ls
- cp -r C:/run/* %APPVEYOR_BUILD_FOLDER%
- cp C:/run/.Rbuildignore %APPVEYOR_BUILD_FOLDER%
- cd %APPVEYOR_BUILD_FOLDER%
- ls
on_failure:
- cat *.Rcheck/00install.out
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.zip'
name: Bits
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: '*.Rcheck\**\*.Rout'
name: Logs
- path: '\*_*.zip'
name: Bits
image:
- Visual studio 2015
- Ubuntu