forked from DTW-DanWard/OctopusDeployUtilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
41 lines (34 loc) · 1.38 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
# See http://www.appveyor.com/docs/appveyor-yml for many more options
image: Visual Studio 2017
#Publish to PowerShell Gallery with this key
environment:
NugetApiKey:
secure: LdLID7s09cfdn/RnP63uPqcfVAC6jANTKnbCiUUw737IQ8wV95zx2SzDLkaVWVNR
GitToken:
secure: nyjiIuUkEkbCOXSnDs76VJyFMaQGwhZMAHI9pfwPiBLVp+TsbRswx6oPobo/8+AH
UpdateCoverageBadge: false
# Allow WMF5 (i.e. PowerShellGallery functionality)
os: WMF 5
# Skip on updates to the readme.
# We can force this by adding [skip ci] or [ci skip] anywhere in commit message
skip_commits:
message: /updated readme.*|update readme.*s/
build: false
# Kick off the CI/CD pipeline
test_script:
- ps: . .\build.ps1 -Task 'Deploy'
on_success:
- ps: |
if ($env:UpdateCoverageBadge -eq $true) {
"Updating readme.md file as code coverage percentage has changed"
git config --global credential.helper store
Add-Content "$HOME\.git-credentials" "https://$($env:GitToken):[email protected]`n"
git config --global user.email "[email protected]"
git config --global user.name "Appveyor"
# try to suppress CRLF warnings in stderr during git add
git config --global core.safecrlf false
git checkout -q $env:APPVEYOR_REPO_BRANCH
$Suppress = git add readme.md 2>&1
git commit -q -m "[skip ci] AppVeyor Build $env:APPVEYOR_BUILD_VERSION"
git push -q
}