forked from Chatham/Vault.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
73 lines (64 loc) · 1.95 KB
/
appveyor.yml
File metadata and controls
73 lines (64 loc) · 1.95 KB
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
version: 0.9.1.3-{build}-{branch}
configuration: Release
pull_requests:
do_not_increment_build_number: true
nuget:
account_feed: true
project_feed: true
disable_publish_on_pr: true
environment:
VAULT_BIN: C:\vault\vault.exe
VAULT_VERSION: 0.9.1
PACKAGE_VERSION: 0.9.1.3
install:
- cinst: 7zip.commandline
- ps: mkdir -Force c:\vault | Out-Null
- ps: |-
$vault_zip = "vault_$($env:VAULT_VERSION)_windows_amd64.zip"
$vault_url = "https://releases.hashicorp.com/vault/$($env:VAULT_VERSION)/$vault_zip"
$destination = "c:\vault\$vault_zip"
if (!(Test-Path $destination)) {
Write-Output "Downloading $vault_url"
[Net.ServicePointManager]::SecurityProtocol = 'Tls12'
Start-FileDownload $vault_url -FileName $destination
}
7z x -y c:\vault\$vault_zip -oc:\vault\
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- C:\vault -> appveyor.yml
- '%USERPROFILE%\.nuget\packages -> **\project.json'
init:
- ps: $Env:LABEL = "CI" + $Env:APPVEYOR_BUILD_NUMBER.PadLeft(4, "0")
before_build:
- appveyor-retry dotnet restore
build_script:
- dotnet build .\src\Vault -c %CONFIGURATION% --no-dependencies --version-suffix %LABEL%
after_build:
- dotnet pack .\src\Vault -c %CONFIGURATION% --no-build --version-suffix %LABEL% -o artifacts
test_script:
- dotnet test .\test\Vault.Tests --configuration %CONFIGURATION%
artifacts:
- path: .\**\artifacts\*.*
name: NuGet
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: $(APPVEYOR_BUILD_VERSION)
package_version: $(PACKAGE_VERSION)
assembly_version: $(APPVEYOR_BUILD_VERSION)
deploy:
- provider: NuGet
name: production
api_key:
secure: jX7JJEA/9kvjiLBsPoSLefOUUvUBSdsiMRtvFnS0TKefwtRfZFX7RGuY5sr4ZaR+
on:
branch: master
appveyor_repo_tag: true
notifications:
- provider: Email
to:
- christopher.hoffman@gmail.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true