-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathappveyor.yml
70 lines (57 loc) · 1.9 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
environment:
PYPI_USER: "andrewzwicky"
PYPI_PW:
secure: "UYwQCnByKXfEv0Z72TOSKw=="
global:
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\windows_sdk.cmd"
matrix:
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
PIP: "C:\\Python36-x64\\Scripts\\pip"
PROFILE_FILE: = "tests/combined.prof"
skip_commits:
files:
- 'docs/*'
- 'README.md'
- 'README.rst'
- 'LICENSE'
platform:
- x64
install:
- "%PYTHON%\\python --version"
- "%PIP% --version"
- "%PIP% install --disable-pip-version-check --user --upgrade pip"
- "%PIP% install twine pyinstaller wheel pylint gprof2dot"
- "appveyor DownloadFile https://graphviz.gitlab.io/_pages/Download/windows/graphviz-2.38.msi"
- ps: "msiexec /i graphviz-2.38.msi /quiet /qn /norestart"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;C:\\Program Files (x86)\\Graphviz2.38\\bin;%PATH%"
- "%PIP% install -e .[test]"
build_script:
- "pyinstaller pubgis_main.spec --onefile --clean -y"
- "%PYTHON%\\python setup.py sdist"
test_script:
- "pylint -j 0 pubgis tests"
- "pytest --profile --cov=pubgis"
- "gprof2dot -f pstats prof\\combined.prof > prof\\tmp"
- "dot -Tsvg -o prof\\combined.prof.svg prof\\tmp"
artifacts:
- path: dist/PUBGIS.exe
name: "github executable"
- path: dist/PUBGIS*.tar.gz
name: "pypi sdist"
- path: prof/combined*, prof/test_video_file*, prof/test_mock_video*
name: "profiling"
deploy:
description: PUBGIS-$(tag)
provider: GitHub
auth_token:
secure: jjeC9sJwrut5ynFmVuhHyBIVTd2yKhWx8+9J919+lvIbKZ0e5g88oHyoaXZ6yE3a
artifact: dist/PUBGIS.exe
draft: false
prerelease: false
on:
branch: master
appveyor_repo_tag: true
after_deploy:
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -or $env:APPVEYOR_REPO_TAG -eq "True") { Invoke-Expression "twine upload -u $env:PYPI_USER -p $env:PYPI_PW -r pypi --skip-existing dist/*.tar.gz" 2>$null }