-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
100 lines (79 loc) · 2.64 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# https://www.appveyor.com/docs/appveyor-yml/
#---------------------------------#
# general configuration #
#---------------------------------#
branches:
except:
- gh-pages
max_jobs: 1
environment:
# Github
access_token:
secure: IGs25EMrhe0au+uVDbOck6akDzC9ykvJeR0zJjhrT6idNuYOr/JpyGdefQxSlWXk
github_email:
secure: U3oByHGtWDiIy9psThpxwg==
# Sentry
sentry_token:
secure: lgElsFCXpkvd6ZT3Zti2taxQfajuDzBFA3f4Jae4u3Y/HM4DXhumTtAv5lqgKv2du9Emg+o4ZEtuqoVWJpJJYcGx2zOoYn/Y1PXuFXhs+8U=
# Slack hook for bot to #design-guide-dev
slack_designguide_webhook:
secure: gxWz5+nY3Ctg2JTqo5RQVwHA+UNxiB/H1u72IC71b3oBZj/dxqBLc1/EYZtxzWjiOCXPSOfKJ485+XhtyTt1kNjHon7JWRftucuOyhaozmw=
# Codecov
codecov_token:
secure: aSdbrWvXrfwEJ9+bz03FYLUSD7m55aqN0npBW+FKhC9UegsoI73jPMzlNFicBkmS
nodejs_version: "10"
# cache:
# - node_modules
install:
- ps: Install-Product node $env:nodejs_version x64
- cmd: >-
choco install gitversion.portable -pre -y
gitversion /l console /output buildserver
npm ci
npm install -g codecov
#---------------------------------#
# build configuration #
#---------------------------------#
before_build:
- ps: ./build/prepare-build.ps1
build_script:
- cmd: npm run build:prod -- --env.release=%release% --env.basename=%basename% --env.semver=%GitVersion_FullSemVer% --env.info_version=%GitVersion_InformationalVersion%
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- cmd: >-
npm run lint
npm run test:codecov
#---------------------------------#
# deployment configuration #
#---------------------------------#
# This is excplicitly set to 'after_test' instead of 'before_deploy' so it runs on all branches [EH]
after_test:
- ps: ./build/prepare-deploy.ps1
deploy:
# Deploy to GitHub Releases
- provider: GitHub
auth_token:
secure: IGs25EMrhe0au+uVDbOck6akDzC9ykvJeR0zJjhrT6idNuYOr/JpyGdefQxSlWXk
release: DesignGuide v$(GitVersion_SemVer)
tag: $(APPVEYOR_REPO_TAG_NAME)
description: $(changelog)
artifact: /PayEx.DesignGuide.*\.zip/
draft: false
prerelease: false
on:
appveyor_repo_tag: true
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Slack
- provider: Slack
incoming_webhook:
secure: gxWz5+nY3Ctg2JTqo5RQVwHA+UNxiB/H1u72IC71b3pk+Am9g0ghP5Jh8WXoUf3gnscGiY2UwQboWJCcqPLEqHkn1PxM+PdJ43ZRRQBQbyE=
channel: design-guide-dev
on_build_success: true
on_build_failure: true
on_build_status_changed: true
# template: "{message}, {commitId}, ..."