forked from difi/felles-utility-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
73 lines (70 loc) · 2.51 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
########################################################
## MASTER and BETA BUILD ##
########################################################
-
branches:
only:
- master
- beta
version: version-placeholder-{build}-{branch}
cache:
- packages -> **\packages.config
configuration: Release
environment:
strong_name_key_secret:
secure: klTrmUGElJ32M1IvA5ecksVOZoUhA22ZAEVhpi5qaZY=
install:
- git submodule update --init --recursive
- nuget install secure-file -ExcludeVersion
- secure-file\tools\secure-file -decrypt signingkey.snk.enc -secret %strong_name_key_secret%
before_build:
- ps: >-
.\appveyor-deploy\MoveSigningKey.ps1 -signingKeyPath "$env:APPVEYOR_BUILD_FOLDER\signingkey.snk" -signingKeyDestination "C:\Keys\signingkey.snk";
.\appveyor-deploy\NugetRestore.ps1;
.\appveyor-deploy\AssemblyInfoVersionPatcher.ps1 -assemblyInfoPath ".\SharedAssemblyInfo.cs";
.\appveyor-deploy\BuildPreamble.ps1
build:
verbosity: minimal
after_build:
- ps: >-
.\appveyor-deploy\NuspecVersionPatcher.ps1 -assembly "Difi.Felles.Utility\bin\Release\Difi.Felles.Utility.dll" -nuspec "difi-felles-utility.nuspec";
nuget pack;
artifacts:
- path: '*.nupkg'
before_test:
- ps: >-
.\appveyor-deploy\TestPreamble.ps1
before_deploy:
- ps: >-
.\appveyor-deploy\DeployPreamble.ps1
deploy:
provider: NuGet
api_key:
secure: ShY/hyVGNf4W+jmwNVZDhWjqxh2jx9r5wSR6Cuq1AsVPcsxv+cYlSCwoIl0I6kpZ
skip_symbols: true
artifact: /.*\.nupkg/
########################################################
## OTHER BRANCHES ##
########################################################
-
version: version-placeholder-{build}-{branch}
cache:
- packages -> **\packages.config
configuration: Release
environment:
strong_name_key_secret:
secure: klTrmUGElJ32M1IvA5ecksVOZoUhA22ZAEVhpi5qaZY=
install:
- git submodule update --init --recursive
- nuget install secure-file -ExcludeVersion
- secure-file\tools\secure-file -decrypt signingkey.snk.enc -secret %strong_name_key_secret%
before_build:
- ps: >-
.\appveyor-deploy\MoveSigningKey.ps1 -signingKeyPath "$env:APPVEYOR_BUILD_FOLDER\signingkey.snk" -signingKeyDestination "C:\Keys\signingkey.snk";
.\appveyor-deploy\NugetRestore.ps1;
.\appveyor-deploy\BuildPreamble.ps1
build:
verbosity: minimal
before_test:
- ps: >-
.\appveyor-deploy\TestPreamble.ps1