-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
111 lines (87 loc) · 2.57 KB
/
appveyor.yml
File metadata and controls
111 lines (87 loc) · 2.57 KB
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
branches:
only:
- master-with-ci
version: "0.0.1.{build}"
environment:
matrix:
# Visual Studio (Python 2 & 3, 32 & 64 bit)
- PYTHON_DIR: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python34"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "32"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python34-x64"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python35"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "32"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python36"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "32"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
BLOCK: "0"
# - PYTHON_DIR: "C:\\Python37"
# PYTHON_VERSION: "3.7.x"
# PYTHON_ARCH: "32"
# BLOCK: "0"
#
# - PYTHON_DIR: "C:\\Python37-x64"
# PYTHON_VERSION: "3.7.x"
# PYTHON_ARCH: "64"
# BLOCK: "0"
GITHUB_TOKEN:
secure: 0AQn9ahwWioFTIZE5Ft+6OnGuj6kgCdLtzdyiDCOrmAHxGh/Hl5erpU6dPF4YyQz
PYPI_USER:
secure: FSD2hc+aSqlOLncSKl12Dw==
PYPI_PASSWORD:
secure: Njw5/Y55cp561BNOqvff/amo5ZeHTMggWoSaVpvE51c=
# Needed by "publish_github_release" add-on to workaround issue appveyor/ci#1493
APPVEYOR_API_TOKEN:
secure: hrNo4O4PKuIZ5I4ESgDrDxdJcIDMpN+kB0J6PHQKOgY=
init:
- python -m pip install -U scikit-ci scikit-ci-addons
- python -m ci_addons --install ../addons
- ps: ../addons/appveyor/rolling-build.ps1
install:
- python -m ci install
build_script:
- python -m ci build
test_script:
- python -m ci test
after_test:
- python -m ci after_test
on_finish:
- ps: ../addons/appveyor/enable-worker-remote-access.ps1 -check_for_block
deploy_script:
- ps: |
if ($env:appveyor_repo_tag -eq $true -and $env:appveyor_repo_tag_name –match "^v[0-9]+(\.[0-9]+)*") {
Write-Host "deploy release"
pip install twine
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
} elseif ($env:appveyor_repo_branch -eq "master-with-ci") {
Write-Host "deploy master"
ci_addons publish_github_release $env:appveyor_repo_name `
--prerelease-sha "master-with-ci" `
--prerelease-packages "dist/*.whl" --re-upload
} else {
Write-Host "nothing to deploy"
}
matrix:
fast_finish: false