-
Notifications
You must be signed in to change notification settings - Fork 11
/
appveyor.yml
43 lines (35 loc) · 1.11 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
# PowerShell 5.0 build worker
os: WMF 5
# Secret deployment keys
environment:
GitHubToken:
secure: g7atusVu/SvLWa4397EhDExCquI2srCWwO2JetLpnQ57V8Pzm27Eq9kj/v8X6wkd
PSGalleryKey:
secure: +o4/iom8ZO0TkCMSM0gInMHq/ioFlK7LRh2jJULTBejba3nCjp2EOv94DcTS2r20
# Install required Pester and PSScriptAnalyzer modules
install:
- ps: Install-PackageProvider NuGet -Force | Out-Null
- ps: Install-Module psake -Force
- ps: Install-Module Pester -Force
- ps: Install-Module PSScriptAnalyzer -Force
- ps: Install-Module xPSDesiredStateConfiguration -RequiredVersion 7.0.0.0 -Force
# Set version to build number
version: '{build}'
# Build configuration
configuration: Release
platform: Any CPU
# Execute psake build task
build_script:
- ps: >-
Invoke-psake build.psake.ps1 -taskList Build -notr
# Execute psake test and analyze task
test_script:
- ps: >-
Invoke-psake build.psake.ps1 -taskList Pester, ScriptAnalyzer -notr
# Execute psake deploy task
deploy_script:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq 'true')
{
Invoke-psake build.psake.ps1 -taskList Gallery, GitHub -notr
}