forked from sipsorcery-org/sipsorcery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
60 lines (60 loc) · 2.19 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
version: 1.0.{build}
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
access_token:
# Token for github pages publishing.
secure: 21m76jAVvcu7oACAHFnfCBltcwon+r5ZI3avfRmrNFAqJMn6RfLXwpBhPcJ617tD
image: Visual Studio 2019
configuration: Release
before_build:
- cmd: nuget restore -DisableParallelProcessing src\SIPSorcery.sln
build:
project: src\SIPSorcery.sln
publish_nuget: true
publish_nuget_symbols: true
verbosity: quiet
test:
categories:
except:
- transport
- txintegration
on_success:
- ps: |
if($env:APPVEYOR_REPO_BRANCH -eq "master" -and -Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git config --global credential.helper store
Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
git config --global user.email "aaron@sipsorcery.com"
git config --global user.name "Aaron Clauson"
git fetch
git checkout gh-pages -q
git merge master
choco install docfx -y
& docfx docfx\docfx.json
if ($lastexitcode -ne 0){
throw [System.Exception] "docfx build failed with exit code $lastexitcode."
}
git add -A 2>&1
git commit -am "Appveyor CI updates"
git push origin gh-pages -q
}
deploy:
- provider: NuGet
server: # remove to push to NuGet.org
api_key:
secure: MMAD8YSvIgFD6mUWB2tdEGzBNbyfW/9TeB+yN325nQ/nHJMLhv2hBYan1CU1O60z
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/
on:
# branch: master # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only
# - provider: GitHub
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
# draft: true
# prerelease: true
# auth_token:
# secure: E58r+OknoQn8+bsPRT6l3U2K4kfOpDiGCo1C75LkVg+R/RBHpY//J8UCXEfVvyRB
# on:
# branch: master # release from master branch only
# APPVEYOR_REPO_TAG: true # deploy on tag push only