-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
51 lines (43 loc) · 1.2 KB
/
appveyor.yml
File metadata and controls
51 lines (43 loc) · 1.2 KB
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
# build is triggered on commits and PRs to the following branches
branches:
# whitelist
only:
- master
image: Visual Studio 2019
environment:
matrix:
- PYTHON: C:\Python38
install:
- set PATH=%PYTHON%;%PYTHON%/Scripts;%PATH%
- ps: >-
If ($env:APPVEYOR_REPO_TAG -eq "true")
{
$env:BUILD_NUMBER_OR_TAG_NAME = $env:APPVEYOR_REPO_TAG_NAME
}
Else
{
$env:BUILD_NUMBER_OR_TAG_NAME = "$env:APPVEYOR_BUILD_NUMBER.$env:APPVEYOR_REPO_COMMIT"
}
- set WINDOWS_ZIP_FILENAME=hello_world-%BUILD_NUMBER_OR_TAG_NAME%-windows-x86.zip
- echo windows artifact zip filename is %WINDOWS_ZIP_FILENAME%
- python -m pip install pyinstaller
# run a custom scripts instead of automatic MSBuild
build_script:
- mkdir build
- cd build
- python -m PyInstaller ../hello_world.py
- 7z a %WINDOWS_ZIP_FILENAME% ./dist/hello_world/
artifacts:
- path: hello_world.py
name: python_script
- path: build/$(WINDOWS_ZIP_FILENAME)
name: windows_executable
deploy:
description: 'Initial Version'
provider: GitHub
auth_token:
secure: l6RQlR9p5XLRsTH5GtTs4HMR3b819qt5wDzgQUN2zHjbgVdEMkS83Kojsvwp7Qqt
artifact: python_script, windows_executable
draft: false
on:
APPVEYOR_REPO_TAG: true