-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
64 lines (56 loc) · 1.75 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
version: "{build}"
environment:
matrix:
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.5"
PYTHON: "C:\\Python35"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.5"
PYTHON: "C:\\Python35-x64"
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.6"
PYTHON: "C:\\Python36-x64"
- ARCHITECTURE: "x86"
PYTHON_VERSION: "3.7"
PYTHON: "C:\\Python37"
- ARCHITECTURE: "x64"
PYTHON_VERSION: "3.7"
PYTHON: "C:\\Python37-x64"
init:
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
install:
- python -m pip install -U pip
- python -m pip install -U -r ci_requirements.txt
build: off
test_script:
- set TEST_PACKAGING=1
- python -m coverage run --branch --source . -m unittest -v
after_test:
- python -m coverage report --show-missing
- codecov
# Bintray archive preparation
- python -m pip install version_query
- ps: Invoke-WebRequest "https://gist.githubusercontent.com/mbdevpl/46d458350f0c9cc7d793b67573e01f7b/raw/prepare_bintray_deployment.py" -OutFile "prepare_bintray_deployment.py"
- python prepare_bintray_deployment.py "windows%ARCHITECTURE%-python%PYTHON_VERSION%" "dist\*.tar.gz" "dist\*.whl" "dist\*.zip"
- set /p BINTRAY_VERSION=<.bintray_version.txt
artifacts:
- path: dist\*.tar.gz
- path: dist\*.whl
- path: dist\*.zip
- path: '*-bintray.zip'
deploy:
- provider: BinTray
username: $(APPVEYOR_ACCOUNT_NAME)
api_key:
secure: cMLbWadS24XyCD5RU3XM+2GrgqtTfoBgKwkQXyDyVa/3QOF1rXheHki+BRXP5tLo
subject: $(APPVEYOR_ACCOUNT_NAME)
repo: pkgs
package: $(APPVEYOR_PROJECT_NAME)
version: $(BINTRAY_VERSION)
publish: true
override: true
explode: true
artifact: /.*-bintray\.zip/