forked from andrewzwicky/PUBGIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (50 loc) · 1.43 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
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"
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 pytest pyinstaller wheel pylint pytest-xdist"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "%PIP% install ."
build_script:
- "pyinstaller pubgis_main.spec --onefile --clean -y"
- "%PYTHON%\\python setup.py sdist"
test_script:
- "pylint pubgis"
- "pytest -n auto"
artifacts:
- path: dist/PUBGIS.exe
name: "github executable"
- path: dist/PUBGIS*.tar.gz
name: "pypi sdist"
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 }