-
Notifications
You must be signed in to change notification settings - Fork 4
/
.appveyor.yml
75 lines (66 loc) · 1.95 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
image:
- Visual Studio 2019
environment:
matrix:
# Environment vars to send to the build VM
- PYTHON: "C:\\Python38-x64\\python.exe"
WHEELMAN_TARGET: windows
WHEELMAN_REPO: "https://github.com/gbMichelle/wheelman.git"
TWINE_USERNAME:
secure: EnVF0Efkdy2CMUFOw91AOg==
TWINE_PASSWORD:
secure: vRDWpHszD6qeJkqhcs/sJA==
install:
# Windows install prep.
- cmd: |
git clone %WHEELMAN_REPO% wheelman
%PYTHON% -m pip install wheel pyyaml twine
# Turn off MSBuild mode.
build: off
#test_script:
# No tests, how horrible D:<
after_test:
- cmd: "%PYTHON% wheelman\\wheelman.py --target %WHEELMAN_TARGET%"
artifacts:
# bdist_wheel puts the built wheel in the dist directory
- path: dist\*
# The build identifier shown in our webhook
version: '{branch}.{build}'
# Our Discord webhook
notifications:
- provider: Webhook
url:
secure: HPXukd4+SRk2k/1Lf7KxUSB4zVjwaGTepjGvpywQR8ZviI1/C5ABpAYfLYgup81E6p/bbHVgkno4cUf0SkcJqUTUFlFoKdTFQAstp7n/fHF7VvFj+C14R4EUcM2EINgwIGAI1pjse+a5bAJtNvFnllPOn/JqO7hxdV/jqFlh4Bs=
method: POST
body: >-
{
"embeds": [
{
"title": "Build {{buildId}} for {{repositoryName}} - {{#passed}}Success{{/passed}}{{^passed}}Failure{{/passed}}",
"url": "{{buildUrl}}",
"color": {{#passed}}40973{{/passed}}{{^passed}}11672839{{/passed}},
"fields": [
{
"name": "Commit",
"value": "[{{commitMessage}}](https://github.com/{{repositoryName}}/commit/{{commitId}})"
},
{
"name": "Duration",
"value": "{{duration}}",
"inline": true
},
{
"name": "Build version",
"value": "{{buildVersion}}",
"inline": true
}
]
}
]
}
on_build_success: true
on_build_failure: true
on_build_status_changed: true
branches:
only:
- master