forked from vmtk/vmtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
142 lines (120 loc) · 4.91 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
## Program: VMTK
## Language: Python
## Date: January 30, 2018
## Version: 1.4
##
## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved.
## See LICENSE 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
#
# Notes:
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
# - Add [skip ci] or [ci skip] to commit message title and build won’t be triggered by AppVeyor
# for that commit. Or explicitly skip AppVeyor only with [skip appveyor] and still allow any
# other CI to build the commit (eg. Travis CI).
#---------------------------------#
# environment configuration #
#---------------------------------#
image:
- Visual Studio 2017
- Ubuntu
environment:
global:
# HTML report location for pytest
PYTEST_REPORT: "--html=$APPVEYOR_BUILD_FOLDER/pytest_report.html --self-contained-html"
matrix:
- PYTHON_VERSION: "3.7"
- PYTHON_VERSION: "3.6"
platform:
- x64
# Configuration of build
configuration:
- Release
# SSH access to build VMs - enable for debugging
#init:
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
install:
- sh: . distribution/appveyor/install.sh
# - cmd: call distribution/appveyor/install.bat
- cmd: SET PATH=C:\Miniconda37-x64;C:\Miniconda37-x64\Scripts;%PATH%
- cmd: conda config --set always_yes true
- cmd: conda install --quiet -y conda conda-build anaconda-client
- cmd: conda config --prepend channels conda-forge
- cmd: conda config --prepend channels vmtk
- cmd: conda info -a
- cmd: conda list
# ---------------------------------#
# 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:
- sh: conda build --python $PYTHON_VERSION --no-copy-test-source-files distribution/
- cmd: C:\Miniconda37-x64\Scripts\conda build --python %PYTHON_VERSION% --no-copy-test-source-files distribution
on_finish: # Upload conda package and pytest report
- sh: . distribution/appveyor/after_test.sh
- cmd: appveyor PushArtifact pytest_report.html
- ps: Get-ChildItem C:\Miniconda37-x64\conda-bld\win-64\*.tar.bz2 | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
# - sh: sleep 10m
#artifacts:
# - path: 'vmtk*.tar.bz2'
# name: Conda Package
# - path: 'pytest_report.html'
# name: Pytest Report
# 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: https://stackoverflow.com/a/13751649/163740
# CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\distribution\\appveyor\\run_with_env.cmd"
# matrix:
# - 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"
# - 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"
# # build platform, options: x86, x64, Any CPU.
# platform:
# - x64
# # Configuration of build
# configuration:
# - Release
# # this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
# # as well as pip, conda-build, and the binstar CLI
# # by default, all script lines are interpreted as batch
# install:
# - powershell .\\distribution\\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:
# - "%CMD_IN_ENV% conda config --add channels vmtk"
# - "%CMD_IN_ENV% conda config --show"
# - "%CMD_IN_ENV% conda build --python %APP_CONDA_PY% --no-copy-test-source-files distribution"