-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
103 lines (90 loc) · 3.52 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
## Program: VMTK
## Language: Python
## Date: January 30, 2018
## Version: 1.4
##
## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved.
## See LICENCE file for details.
##
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
## PURPOSE. See the above copyright notices for more information.
##
## Note: this code was contributed by
## Richard Izzo (Github @rlizzo)
## University at Buffalo
# API token for the vmtk anaconda channel
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\continuous-integration\\appveyor\\run_with_env.cmd"
ANACONDA_API_TOKEN:
secure: fVJ4du4JeXvRvrVa/q4n9PODtmA0Q0mNRcnPxAjlYkioS7OD35G2zQLt3IsMJFz+
matrix:
- PYTHON: "C:\\Python36_64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: "36"
APP_CONDA_PY: "3.6.1"
PACKAGE_TO_BUILD: "itk"
- PYTHON: "C:\\Python35_64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
CONDA_PY: "35"
APP_CONDA_PY: "3.5.1"
PACKAGE_TO_BUILD: "vtk"
- PYTHON: "C:\\Python36_64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: "36"
APP_CONDA_PY: "3.6.1"
PACKAGE_TO_BUILD: "vtk"
- PYTHON: "C:\\Python35_64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
CONDA_PY: "35"
APP_CONDA_PY: "3.5.1"
PACKAGE_TO_BUILD: "vmtk"
- PYTHON: "C:\\Python36_64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: "36"
APP_CONDA_PY: "3.6.1"
PACKAGE_TO_BUILD: "vmtk"
platform:
- x64
configuration:
- Release
install:
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
# as well as pip, conda-build, and the binstar CLI
- powershell .\\continuous-integration\\appveyor\\install.ps1
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
#---------------------------------#
# build / test configuration #
#---------------------------------#
# because we are handing off the rest of the build process to conda build,
# appveyor never realizes that we are actually performing both a build and a test
# phase. By setting build=false and then just handing off the rest of the execution
# to the "test_script", appveyor unknowningly builds the package all while watching for
# the results of the tests to run.
build: false
test_script:
# Note also that our setup.py script, which is called by conda-build, writes
# a __conda_version__.txt file, so the version number on the binary package
# is set dynamically. This unfortunately mean that conda build --output
# doesn't really work.
# # Only upload if this is not a pull request
- if defined APPVEYOR_PULL_REQUEST_NUMBER (set UPLOAD=false) else (set UPLOAD=true)
- echo Upload is %UPLOAD%
- "%CMD_IN_ENV% conda config --add channels vmtk"
- "%CMD_IN_ENV% conda config --set anaconda_upload %UPLOAD%"
- "%CMD_IN_ENV% conda config --show"
- "%CMD_IN_ENV% conda build --verify --user vmtk --token %ANACONDA_API_TOKEN% --python %APP_CONDA_PY% --no-copy-test-source-files %PACKAGE_TO_BUILD%"