-
Notifications
You must be signed in to change notification settings - Fork 38
/
appveyor.yml
81 lines (69 loc) · 2.02 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
70
71
72
73
74
75
76
77
78
79
80
81
os: Visual Studio 2019
clone_depth: 1
branches:
only:
- main
- develop
- next
- /try.*/
- /dev.*/
- /release-.*/
environment:
github_access_token:
secure: "ogfTv7V0xR13ETjrC+koS7ZURfl0KLRfwcjYBexoiB1gcc5pppO/H42BopJWl0ua"
install:
# Install hyperfine for benchmarking
- cinst hyperfine
# NSIS Paths
# https://www.appveyor.com/docs/build-environment/#tools
- set PATH=%PATH%;C:\Program Files (x86)\NSIS
# Python stdout encoding
- set PYTHONIOENCODING=utf-8
build_script:
# 32-bit version
- ps: Write-Host "Building the 32-bit variant."
- py -3.10-32 -m venv .venv32
- call ".venv32\Scripts\activate.bat"
- python -m pip install invoke
- invoke dev
- python -m pytest -vvv
- invoke build
- invoke create-portable
- invoke bench
- deactivate
# 64-bit version
- ps: Write-Host "Building the 64-bit variant."
- py -3.10-64 -m venv .venv64
- call ".venv64\Scripts\activate.bat"
- python -m pip install invoke
- invoke dev
- python -m pytest -vvv
- invoke build
- invoke create-portable
- invoke bench
# Update the release info file
- invoke update-version-info
- invoke gen-pot
artifacts:
- path: scripts\Bookworm*setup.exe
- path: scripts\Bookworm*update.bundle
- path: scripts\Bookworm*portable.zip
- path: scripts\release-info.json
- path: scripts\benchmark*.json
- path: scripts\bookworm*.pot
on_success:
- ps: |
if ($env:APPVEYOR_REPO_TAG_NAME -and $env:APPVEYOR_REPO_TAG_NAME.StartsWith("release-")) {
echo "Updating version information for this release."
}
deploy:
release: "Bookworm Release (Build v$(appveyor_build_version))"
description: "Uploaded from appveyor by the build bot"
provider: GitHub
auth_token:
secure: "ogfTv7V0xR13ETjrC+koS7ZURfl0KLRfwcjYBexoiB1gcc5pppO/H42BopJWl0ua"
artifact: /Bookworm-.*-setup\.exe/, /Bookworm-.*-update\.bundle/, /Bookworm-.*-portable\.zip/, /release-info\.json/, /bookworm-.*\.pot/, /benchmark.*\.json/
draft: true
prerelease: true
on:
APPVEYOR_REPO_TAG: true