This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
appveyor.yml
280 lines (249 loc) · 9.41 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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
# 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:\\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:\\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:\\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:\\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:\\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:\\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:\\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:\\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"
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:/\""
#- ECHO "Installed SDKs:"
#- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
#- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
#- travis-tool.sh install_github igraph/igraph
#- travis-tool.sh install_github igraph/python-igraph
# Install Python (from the official .msi of https://python.org) and pip when
# not already installed.
#- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
#- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
#- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# setup conda environment for building
#- cmd: set "PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%"
#- cmd: set PYTHONUNBUFFERED=1
- "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
#- "constructor --verbose --platform=%CONDA_PLATFORM% %OBSPY_VERSION%_%CONDA_PYSUFFIX%"
# update mysy2
#- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
#- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy"
#- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf automake bison flex"
#- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S libxml2-devel zip"
- conda info --envs
#- conda create -n env_name -y
#- conda update -y -n base -c defaults conda
#- "conda.bat activate"
#- sudo conda init bash
#- bash
#- conda activate base
#- echo ". C:\Miniconda37/etc/profile.d/conda.sh" >> ~/.bashrc
#- conda activate env_name
- 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 update -q conda pip
#- conda install -y -q numpy
#- conda install -y -q -c r r-igraph
#- conda install -y -q -c conda-forge libcxx
#- conda install -y -q -c anaconda git
#- git clone -q https://github.com/conda-forge/igraph-feedstock.git C:\projects\igraph-feedstock
#- git fetch -q origin +refs/pull/7/merge:
#- git checkout -qf HEAD
#- powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py', 'ff_ci_pr_build.py')"
#- ff_ci_pr_build -v --ci "appveyor" "%APPVEYOR_ACCOUNT_NAME%/%APPVEYOR_PROJECT_SLUG%" "%APPVEYOR_BUILD_NUMBER%" "%APPVEYOR_PULL_REQUEST_NUMBER%"
#- del ff_ci_pr_build.py
#- rmdir C:\cygwin /s /q
#- call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
#- conda.exe update --yes --quiet conda
#- set PYTHONUNBUFFERED=1
#- conda.exe config --set show_channel_urls true
#- conda.exe config --remove channels defaults
#- conda.exe config --add channels defaults
#- conda.exe config --add channels conda-forge
#- conda.exe install -n env_name --quiet --yes conda-forge-build-setup
#- run_conda_forge_build_setup
#- conda.exe build recipe --quiet
#- conda install -n env_name -y q igraph
- conda install -y numpy scipy
- conda install -y python-igraph
- conda install -y -c conda-forge umap-learn
#- conda install pip numpy scipy
#- "python -m pip install --upgrade pip"
#- "pip install -q pycairo"
#- pip install wheel
#- pip install python-igraph==0.7.1.post6
#- "pip install git+git://github.com/igraph/python-igraph.git"
#- "pip install -q leidenalg"
#- "echo done"
# 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_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