-
Notifications
You must be signed in to change notification settings - Fork 33
/
appveyor.yml
131 lines (111 loc) · 3.68 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Neuroconductor Template
# DO NOT CHANGE the "init" and "install" sections below
# Download script file from GitHub
init:
- "ECHO %PYTHON_VERSION% %MINICONDA%"
- 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'
platform:
- x86
environment:
global:
USE_RTOOLS: true
R_CHECK_INSTALL_ARGS: "--install-args=--build --no-multiarch "
WARNINGS_ARE_ERRORS: 1
PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda3-x64
R_ARCH: x64
matrix:
- R_VERSION: devel
R_VER: 3.6
- R_VERSION: release
R_VER: 3.5
- R_VERSION: oldrel
CRAN: http://cran.rstudio.com
R_VER: 3.4
- R_VERSION: 3.3.3
CRAN: http://cran.rstudio.com
R_VER: 3.3
- R_VERSION: 3.2.5
CRAN: http://cran.rstudio.com
R_VER: 3.2
install:
- ps: Bootstrap
- ps: (new-object net.webclient).DownloadFile('https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Windows/JAGS-4.2.0-Rtools33.exe', 'C:\projects\JAGS-4.2.0.exe')
- cmd: C:\projects\JAGS-4.2.0.exe /S
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- if exist "requirements.txt" conda update -q conda
- if exist "requirements.txt" conda info -a
- if exist "requirements.txt" conda create -q -n test-environment python="%PYTHON_VERSION%" --file requirements.txt
cache:
- C:\RLibrary
# Adapt as necessary starting from here
build_script:
- travis-tool.sh install_deps
test_script:
- if not exist "C:\rtm" mkdir 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 -avrTf . C:\run
# need the tool a level above
- cp ../travis-tool.sh C:\
- cd C:\run
# setting PATH to be specific - no MinGW overall - just R's
# - set PATH=C:\Rtools\bin;C:\Rtools\MinGW\bin;
# - set PATH=%PATH%;C:\Rtools\gcc-4.6.3\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:\Program Files (x86)\CMake\bin";
# - set PATH=%PATH%;C:\R\bin\x64;
# - 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 run_tests
- ls
- ls ../
# - cp ../*.zip ./
- cp -ravTf C:/run %APPVEYOR_BUILD_FOLDER%
- cd %APPVEYOR_BUILD_FOLDER%
- 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:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
after_test:
- 7z a testthat.zip *.Rcheck\**\*.Rout
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: testthat.zip
name: Logs
- path: '\*_*_*.zip'
name: Bits
deploy:
provider: GitHub
description: 'Windows Binary'
auth_token:
secure: dUI5DBS31Kfp6DIqx8NSxsyTkOOXbF5QkW6vi+++/smzii3mGky/YYRTA9KJX+1Z
draft: false
prerelease: false
on:
appveyor_repo_tag: true