-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
245 lines (221 loc) · 7.32 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# DO NOT CHANGE the "init" and "install" sections below
image:
#- Visual Studio 2015
- Visual Studio 2017
#- Ubuntu
environment:
global:
PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows;%PATH%
#;C:\Windows\System32
R_CHECK_ARGS: "--ignore-vignettes --no-examples --no-build-vignettes --no-manual"
R_BUILD_ARGS: '--no-build-vignettes'
NOT_CRAN: true
USE_RTOOLS: true
_R_CHECK_FORCE_SUGGESTS_: false
matrix:
- PYTHON: "C:\\Python35"
RETICULATE_PYTHON: "C:\\Python35"
MINICONDA: C:\Miniconda35-x64
CONDA_INSTALL_LOCN: C:\Miniconda35-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: devel
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
GCC_PATH: mingw_64
- PYTHON: "C:\\Python36"
RETICULATE_PYTHON: "C:\\Python36"
MINICONDA: C:\Miniconda36-x64
CONDA_INSTALL_LOCN: C:\Miniconda36-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: devel
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
GCC_PATH: mingw_64
- PYTHON: "C:\\Python37"
RETICULATE_PYTHON: "C:\\Python37"
MINICONDA: C:\Miniconda37-x64
CONDA_INSTALL_LOCN: C:\Miniconda37-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: devel
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
GCC_PATH: mingw_64
- PYTHON: "C:\\Python38"
RETICULATE_PYTHON: "C:\\Python38"
MINICONDA: C:\Miniconda38-x64
CONDA_INSTALL_LOCN: C:\Miniconda38-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: devel
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
GCC_PATH: mingw_64
- PYTHON: "C:\\Python35"
RETICULATE_PYTHON: "C:\\Python35"
MINICONDA: C:\Miniconda35-x64
CONDA_INSTALL_LOCN: C:\Miniconda35-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: release
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36"
RETICULATE_PYTHON: "C:\\Python36"
MINICONDA: C:\Miniconda36-x64
CONDA_INSTALL_LOCN: C:\Miniconda36-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: release
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python37"
RETICULATE_PYTHON: "C:\\Python37"
MINICONDA: C:\Miniconda37-x64
CONDA_INSTALL_LOCN: C:\Miniconda37-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: release
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python38"
RETICULATE_PYTHON: "C:\\Python38"
MINICONDA: C:\Miniconda38-x64
CONDA_INSTALL_LOCN: C:\Miniconda38-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: release
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python35"
RETICULATE_PYTHON: "C:\\Python35"
MINICONDA: C:\Miniconda35-x64
CONDA_INSTALL_LOCN: C:\Miniconda35-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: stable
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python36"
RETICULATE_PYTHON: "C:\\Python36"
MINICONDA: C:\Miniconda36-x64
CONDA_INSTALL_LOCN: C:\Miniconda36-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: stable
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python37"
RETICULATE_PYTHON: "C:\\Python37"
MINICONDA: C:\Miniconda37-x64
CONDA_INSTALL_LOCN: C:\Miniconda37-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: stable
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python38"
RETICULATE_PYTHON: "C:\\Python38"
MINICONDA: C:\Miniconda38-x64
CONDA_INSTALL_LOCN: C:\Miniconda38-x64
DISTUTILS_USE_SDK: "1"
R_VERSION: stable
R_ARCH: x64
platform: x64
PYTHON_ARCH: "64"
matrix:
fast_finish: true
exclude:
- platform: x64
PYTHON_ARCH: "32"
- platform: x86
PYTHON_ARCH: "64"
# 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'
- cmd: "ECHO %PYTHON_VERSION% %CONDA_INSTALL_LOCN%"
- cmd: "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%MINICONDA%\\Library\\bin;%PATH%"
install:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
# purpose but it is problematic because it tends to cancel builds pushed
# directly to master instead of just PR builds (or the converse).
# credits: JuliaLang developers.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- ECHO "Filesystem root:"
- ps: "ls \"C:/\""
# Check that we have the expected version and architecture for Python
- "python --version"
# setup conda environment for building
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python -c \"import sys; print(sys.version)\""
# Install the build and runtime dependencies of the project.
- "conda update -q --yes conda"
# Install constructor, take into account what vc version we target later in the build..
- "conda install -q --yes 'constructor>=2.0'"
# list package versions
- "conda list"
# build installer
- conda info --envs
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda config --add channels vtraag
- conda install -y -q conda pip
#- conda init cmd.exe
#- conda install -n r-reticulate -y q igraph
- conda install -y numpy scipy
- conda install -y python-igraph
- conda install -y -c conda-forge leidenalg
- conda install -y -c intel mkl
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
#- "python -m pip install --upgrade pip"
# Install the build dependencies of the project. If some dependencies contain
# compiled extensions and are not provided as pre-built wheel packages,
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
#- "%CMD_IN_ENV% pip install leidenalg python-igraph numpy"
#install:
#install python libraries
#- "pip install --upgrade pip"
#- "pip install leidenalg"
- ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as necessary starting from here
build_script:
- R -e 'install.packages("igraph")'
- R -e 'install.packages("RColorBrewer")'
- R -e 'install.packages("rmarkdown")'
- R -e 'install.packages("knitr")'
- travis-tool.sh install_github igraph/rigraph
- travis-tool.sh install_deps
#- "pip install -q graphviz" #includes python-igraph
#- "pip install -q leidenalg"
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