-
Notifications
You must be signed in to change notification settings - Fork 79
/
appveyor.yml
45 lines (36 loc) · 1.17 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
platform: x86
version: '{branch}-{build}'
environment:
matrix:
- PYTHON: "C:\\Python27"
TOX_ENV: py27
- PYTHON: "C:\\Python35"
TOX_ENV: py35
- PYTHON: "C:\\Python35"
TOX_ENV: freeze
branches:
only:
- master
- /^v\d+\.\d+\.\d+[\w\-]*$/
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "SET TOX_TESTENV_PASSENV=HOME USERPROFILE HOMEPATH HOMEDRIVE"
- "pip install -U tox twine wheel"
# No build stage, binaries are built in 'freeze' test environment
build: false
test_script:
- "tox -e %TOX_ENV%"
artifacts:
- path: dist_bin\shub.exe
- path: dist_bin\shub-$(APPVEYOR_REPO_TAG_NAME)-windows-$(PLATFORM).zip
after_test:
- if "%TOX_ENV%" == "freeze" (7z a %APPVEYOR_BUILD_FOLDER%\dist_bin\shub-%APPVEYOR_REPO_TAG_NAME%-windows-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\dist_bin\shub.exe) else (echo "Not in freeze environment, skipping zip creation")
deploy:
provider: GitHub
auth_token:
secure: VL0u0BjtFWMJi6gb32hd4dNWHAY6P92o+Aq2GsfLgqqlfa7PXIZpgEAG8m5egXsh
artifact: dist_bin\shub-$(APPVEYOR_REPO_TAG_NAME)-windows-$(PLATFORM).zip
release: $(APPVEYOR_REPO_TAG_NAME)
draft: true
on:
appveyor_repo_tag: true