-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
62 lines (61 loc) · 1.65 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
# for dev/master branch
-
version: 1.0.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- dev
- master
skip_tags: true
image: Visual Studio 2015
configuration: Debug
platform: Any CPU
build_script:
- ps: .\build-solution.ps1 -Configuration Debug
test_script:
- ps: .\run-tests.ps1 -Configuration Debug
# for release/all branch
-
version: 1.0.0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- release/all
skip_tags: true
image: Visual Studio 2015
configuration: Release
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
github_auth_token:
secure: 3tp7rCl4cvk/WDYBaeodIlmalNiYVWQYxE1wmVU7aMbkMKP0WtlMjjOU2yhX0D4n
build_script:
- ps: .\build-solution.ps1 -Configuration Release
test_script:
- ps: .\run-tests.ps1 -Configuration Release
after_test:
- ps: .\apply-version.ps1 -Version $env:APPVEYOR_BUILD_VERSION
- ps: .\build-nuget-package.ps1
artifacts:
- path: '**\AdalWrapper.*.nupkg'
name: AdalWrapper
deploy:
- provider: NuGet
api_key:
secure: ZdI7BA2YRQg/yRMPbRGTTJeGWj3X3o8kNhf4LeA5YkV072GpmKwQ3aW+KVgMbkZX
artifact: AdalWrapper
on:
branch: release/all
platform: Any CPU
configuration: Release
after_deploy:
- cmd: git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:github_auth_token):x-oauth-basic@github.com`n"
- cmd: git push origin --delete release/all