-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (30 loc) · 1.24 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
version: 1.0.{build}-{branch}
os: Windows Server 2012 R2
build: off
install:
- ps: |
Find-Package Pester | Install-Package -SkipValidate
Find-Package xDSCResourceDesigner | Install-Package -SkipValidate
test_script:
- ps: |
Invoke-Pester -Path .\Tests\Unit -OutputFile ".\TestResults.xml" -OutputFormat NUnitxml -CodeCoverage .\DSCResources\*
deploy_script:
- ps: |
if($env:APPVEYOR_REPO_BRANCH -eq "masterdddd") {
# Extract version from changelog
# Update the xWinRM.psd1 extracted version
# commit & tag
Publish-Module -NuGetApiKey $env:PSGalleryApiKey -Path $env:APPVEYOR_BUILD_FOLDER -Confirm:$false;
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://${env:GitHubKey}:[email protected]`n"
git tag $env:APPVEYOR_BUILD_VERSION
git push origin -q $env:APPVEYOR_BUILD_VERSION
}
notifications:
- provider: Slack
incoming_webhook:
secure: oYviEmkGtgAO8Ij90h3s60tvql2KDBmHGkL7YHb1HAdd2hlEHsC36Xkew7Ei01nUsI7ZfcvbbjDCu+lImrHOpl4Jcmvd5lsZL9k1bhxup7Q=
channel: general
on_build_success: true
on_build_failure: true
on_build_status_changed: false