forked from scikit-build/cmake-python-distributions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
74 lines (58 loc) · 1.77 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
branches:
only:
- master
- /^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/
version: "0.0.1.{build}"
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_DIR: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
BLOCK: "0"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON_DIR: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
BLOCK: "0"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON_DIR: "C:\\Python37"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
BLOCK: "0"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON_DIR: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
BLOCK: "0"
PYPI_USER:
secure: j/nubIi1eucjCtYuwpykWg==
PYPI_PASSWORD:
secure: qDoPKmtLMdcKUKRHuTlfaajjzO4Q4yu25FM5JuB7z84=
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 "^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$") {
Write-Host "deploy release"
$env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
twine upload -u $env:PYPI_USER -p $env:PYPI_PASSWORD --skip-existing dist/*
} elseif ($env:appveyor_repo_branch -eq "master") {
Write-Host "deploy master (not implemented)"
} else {
Write-Host "nothing to deploy"
}
matrix:
fast_finish: false