forked from Illumina/interop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
old-appveyor.remove
186 lines (173 loc) · 6.39 KB
/
old-appveyor.remove
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
# Configuration for AppVeyor Continuous Integration Service
#
# Build status: https://ci.appveyor.com/project/ezralanglois/interop
#
# Tested configurations:
#
# Visual Studio 14 2015
# - Release/Debug
# - 64-bit
# MinGW
# - Release/Debug
# - 64-bit
#
# Removed support for
# - 32-bit compilers
# - Visual Studio 12 2013
#
# C# Compiler is always .NET v4.0.30319
#
# TODO: Why does enabling CRT fail on appveyor?
#
# TODO: Add code to download miniconda if it does not exist
cache:
- x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
image:
- Visual Studio 2015
environment:
matrix:
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py35
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda36-x64
PYTHON_VERSION: 3.5
TWINE_VERSION: ==1.15.0
configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py27
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda-x64
PYTHON_VERSION: 2.7
configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py27
config_type: win64
PACKAGE_TARGET: bundle
ADDIONAL_CONFIG_OPTIONS: -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=ON -DDISABLE_PACKAGE_SUBDIR=ON
PYTHON_PATH_DIR: C:\Miniconda-x64
PYTHON_VERSION: 2.7
configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py27
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda-x64
PYTHON_VERSION: 2.7
configuration: Debug
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py36
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda36-x64
PYTHON_VERSION: 3.6
configuration: Release
#- generator: "Visual Studio 14 2015 Win64"
# BUILD: msvc14_win64_py34
# config_type: win64
# PACKAGE_TARGET: package_wheel
# ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
# PYTHON_PATH_DIR: C:\Miniconda36-x64
# PYTHON_VERSION: 3.4
# configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py37
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda36-x64
PYTHON_VERSION: 3.7
configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py38
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda36-x64
PYTHON_VERSION: 3.8
configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py39
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda36-x64
PYTHON_VERSION: 3.9
configuration: Release
- generator: "Visual Studio 14 2015 Win64"
BUILD: msvc14_win64_py310
config_type: win64
PACKAGE_TARGET: package_wheel
ADDIONAL_CONFIG_OPTIONS: -DENABLE_APPS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=OFF
PYTHON_PATH_DIR: C:\Miniconda36-x64
PYTHON_VERSION: 3.10
configuration: Release
matrix:
fast_finish: true
before_build:
- cmd: set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- cmd: set PATH=%COMPILER_PATH%;%PATH%
- cmd: set PATH=%PYTHON_PATH_DIR%;%PYTHON_PATH_DIR%\Scripts;%PATH%
- cmd: conda update -q -y conda
- cmd: conda info -a
- cmd: conda create --name python%PYTHON_VERSION% python=%PYTHON_VERSION% numpy -y -q
- cmd: activate python%PYTHON_VERSION%
- cmd: python -m pip install twine%TWINE_VERSION%
install:
- cmd: date /T & time /T
- ps: |
if (Test-Path "C:/ProgramData/chocolatey/bin/swig.exe") {
C:/ProgramData/chocolatey/bin/swig.exe -swiglib
if ($lastexitcode -ne 0) {
echo "Installing swig"
appveyor-retry choco install swig --version 3.0.8 --yes --limit-output
}
else{
echo "using swig from cache"
}
} else {
echo "Installing swig"
appveyor-retry choco install swig --version 3.0.8 --yes --limit-output
}
build_script:
- call tools\package.bat "%configuration%" "%GENERATOR%" %PACKAGE_TARGET% "%ADDIONAL_CONFIG_OPTIONS%"
before_deploy:
- ps: if (($env:APPVEYOR_REPO_TAG -imatch "true") -And ($env:configuration -imatch "Release") -And ($env:config_type -imatch "win64") -And (Test-Path .\dist\*.whl)) { & python -m twine upload --skip-existing .\dist\*.whl}
artifacts:
- path: .\dist\*.zip
name: Releases
- path: .\dist\*.whl
name: PythonRelease
- path: .\dist\*.nupkg
name: NuGetRelease
branches:
only:
- /v\d\.\d\.\d/
- master
deploy:
provider: GitHub
description: 'Release description'
artifact: /.*\.nupkg/,/.*\.whl/,/interop-.*\.zip/
draft: true
auth_token:
secure: 6C7X1zPTuB91c25E59UFpHrwosBxsEkMs1CsXjRtx15Uqowi+KBpS6CkQSWxmgrS
on:
APPVEYOR_REPO_TAG: true
configuration: Release
config_type: win64
########################################################################################################################
#
# These settings allow one to Remote Desktop into the VM and check what went wrong:
#
########################################################################################################################
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))