-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
101 lines (82 loc) · 3.32 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
# branches to build
branches:
# whitelist
only:
- master
image: Visual Studio 2015
#---------------------------------#
# environment configuration #
#---------------------------------#
# this is how to allow failing jobs in the matrix
# matrix:
# fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
# allow_failures:
# - platform: x86
# configuration: Debug
# - platform: x64
# configuration: Release
# environment variables
environment:
package_dir: NuGet_Packages
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: "{version}.0"
assembly_file_version: "{version}.0"
assembly_informational_version: "{version}"
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
build:
project: src\HMRC.ESFA.Levy.Api.sln # path to Visual Studio solution or project
publish_wap: false # package Web Application Projects (WAP) for Web Deploy
publish_wap_xcopy: false # package Web Application Projects (WAP) for XCopy deployment
publish_azure: false # package Azure Cloud Service projects and push to artifacts
publish_nuget: false # package projects with .nuspec files and push to artifacts
# MSBuild verbosity level quiet|minimal|normal|detailed
verbosity: normal
parallel: true
# scripts to run before build
before_build:
- ps: If (Test-Path "$env:package_dir") { Remove-Item "$env:package_dir" -Recurse -Force -ErrorAction SilentlyContinue }
- nuget restore src\HMRC.ESFA.Levy.Api.sln
# scripts to run after build
after_build:
- mkdir %PACKAGE_DIR%
- nuget pack src\HMRC.ESFA.Levy.Api.Types\HMRC.ESFA.Levy.Api.Types.nuspec -OutputDirectory %PACKAGE_DIR% -BasePath src\HMRC.ESFA.Levy.Api.Types -Verbosity Detailed -Version %APPVEYOR_BUILD_VERSION% -Symbols -Properties Configuration=Release
- nuget pack src\HMRC.ESFA.Levy.Api.Client\HMRC.ESFA.Levy.Api.Client.nuspec -OutputDirectory %PACKAGE_DIR% -BasePath src\HMRC.ESFA.Levy.Api.Client -Verbosity Detailed -Version %APPVEYOR_BUILD_VERSION% -Symbols -Properties Configuration=Release
artifacts:
# pushing all *.nupkg files in directory
- path: 'NuGet_Packages\*.nupkg'
# preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
cache:
- src\packages -> **\packages.config
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
provider: NuGet
api_key:
secure: pFTcX0gBaJiP3nLZhvycW+DBzY2J3/UtOR1sB78NgzTsO3wMhS8ndBTs3DF60Idx
skip_symbols: true
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/
#---------------------------------#
# notifications configuration #
#---------------------------------#
#notifications:
#- provider: Webhook
# url: https://webhooks.gitter.im/e/deed811789fbedb507a1
# on_build_success: true
# on_build_failure: true
# on_build_status_changed: true