-
Notifications
You must be signed in to change notification settings - Fork 14
/
appveyor.yml
89 lines (73 loc) · 2.13 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
# DO NOT CHANGE the "init" and "install" sections below
build: off
# Download script file from GitHub
init:
- rm -f *.Rproj
- 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'
environment:
global:
USE_RTOOLS: true
R_CHECK_INSTALL_ARGS: "--install-args=--build --no-multiarch"
WARNINGS_ARE_ERRORS: 1
CRAN: http://cran.rstudio.com
matrix:
- R_VERSION: release
R_VER: 4.3
install:
- ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as necessary starting from here
build_script:
- mkdir -p C:\rtm
- set TMP=C:/rtm
- set TEMP=C:/rtm
- set TMPDIR=C:/rtm
# 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
- RScript -e "install.packages('Rcpp', type = 'source', repos=c(CRAN='https://cran.rstudio.com'))"
- git config core.longpaths true
- git config --system core.longpaths true
- travis-tool.sh install_deps
test_script:
- R CMD INSTALL .
- Rscript -e 'cat(ITKR:::itkDir())'
- travis-tool.sh run_tests
- ls
- cp -ravTf *.zip %APPVEYOR_BUILD_FOLDER% & exit 0
- cp -ravTf C:/run %APPVEYOR_BUILD_FOLDER% & exit 0
- cd %APPVEYOR_BUILD_FOLDER%
- ls
- for %%i in (*.zip) do echo %%~ni> zip_filename.txt
- SET /P PKG_TARBALL=<zip_filename.txt
- del zip_filename.txt
- rename %PKG_TARBALL%.zip %PKG_TARBALL%_R%R_VER%.zip
- echo Built tarball is %PKG_TARBALL%_R%R_VER%.zip
on_failure:
- cat *.Rcheck/00install.out
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '\*_*.zip'
name: Bits
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
deploy:
provider: GitHub
description: 'Windows Binary'
auth_token:
secure: tc2Va9OWLH9H/uKPUKCUmv+q+wQpzRVJd6t8ckXjqzGnOo9eWyiQCmuuUjcuM3b8
draft: false
prerelease: false
on:
appveyor_repo_tag: true
#tag: $(appveyor_repo_tag_name)