forked from etlegacy/etlegacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (52 loc) · 1.6 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: "{build}"
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
branches:
only:
- master
# Build worker image (VM template)
image: Visual Studio 2019
# environment variables
environment:
VisualStudioVersion: "16.0"
# scripts that run after cloning repository
install:
- cmd: git submodule update --init --recursive
# to run your custom scripts instead of automatic MSBuild
build_script:
- cmd: easybuild.bat clean build package -noextra
# to disable automatic builds
build: on
# to disable automatic tests
test: off
# Disable deploy
deploy: off
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: Email
to:
subject: Build {{status}}
message: '{{commitId}}, {{message}}'
on_build_success: false
on_build_failure: false
on_build_status_changed: true
- provider: Webhook
url: https://xzy.com/api/webhooks/12345
on_build_success: false
on_build_failure: true
on_build_status_changed: true
# Discord notification
#on_success:
# - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
# - ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL