generated from nvdaaddons/AddonTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
65 lines (57 loc) · 1.68 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
version: "{branch}-{build}"
max_jobs: 1
branches:
only:
- master
- /test|alpha|beta|dev/
- /^\d+\.\d+(\.\d+)?$/
- /^v?\d+\.\d+\.\d+(-[a-zA-Z0-9\.]+)?$/ # Because it applies to tags as well
environment:
PY_PYTHON: 3.7-32
init:
- ps: |
# For getting the "v" or whatever off of the start of version numbers in the description field
$olddescription = $env:APPVEYOR_REPO_TAG_NAME
$newdescription=$oldDescription -replace '^.*?[^\d]', ''
Set-AppveyorBuildVariable "description" "$newdescription"
# Configuration for pre-release status
if ($env:APPVEYOR_REPO_TAG_NAME) {
if ($env:APPVEYOR_REPO_TAG_NAME -match 'dev|alpha|beta') {
Set-AppveyorBuildVariable -Name "prerelease" -Value "true"
} else {
Set-AppveyorBuildVariable -Name "prerelease" -Value "false"
}
}
install:
- set path=%path%;C:\Python37\Scripts
- py -m pip install --upgrade pip
- py -m pip install markdown
- py -m pip install scons
build_script:
- set path=%path%;C:\Python37\Scripts
- scons
- scons pot
artifacts:
- path: '*.nvda-addon'
name: addon
type: application/x-nvda-addon
- path: '*.pot'
type: application/x-pot
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
description: "Version $(description)"
provider: GitHub
auth_token:
secure: ayZmtkNXgFmwTjA6LMI7/cCcFVAL9w7IiKuCOFeegjntytcAOY8Wzb2LAX2ZqKgY
artifact: addon
draft: false
prerelease: $(prerelease)
on:
appveyor_repo_tag: true # deploy on tag push only
notifications:
- provider: Email
to:
on_build_success: true
on_build_failure: true
on_build_status_changed: true