forked from couchbase/couchbase-net-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
64 lines (64 loc) · 2.69 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
version: 2.4.3.{build}
configuration: Release
init:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME".TrimStart("v") }
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
environment:
SnkSecret:
secure: Mpa4faeUiC2uggKSC5ZgiA==
cache:
- src\packages -> **\packages.config
install:
- ps: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v3.5.0/NuGet.exe
- ps: nuget install secure-file -ExcludeVersion
before_build:
- ps: nuget restore .\src\couchbase-net-client.sln
- ps: .\secure-file\tools\secure-file.exe -decrypt .\build-utils\Couchbase.snk.enc -secret $env:SnkSecret -out .\Couchbase.snk
- ps: Copy-Item .\Couchbase.snk .\Src\Couchbase\Couchbase.snk
- ps: Copy-Item .\Couchbase.snk .\Src\Couchbase.NetStandard\Couchbase.snk
- ps: Get-Content .\src\Couchbase\Properties\AssemblyInfo.cs | Where { $_ -notmatch "InternalsVisibleTo" } | Out-File .\src\Couchbase\Properties\AssemblyInfo.cs
build_script:
- cmd: msbuild Src\Couchbase\Couchbase.csproj /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=Couchbase.snk
- cmd: msbuild Src\Couchbase.NetStandard\Couchbase.NetStandard.csproj /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=Couchbase.snk
after_build:
- ps: Copy-Item -Path .\Src\Couchbase\bin\Release -Filter "Couchbase.*" -Destination .\binaries\net45 -Recurse
- ps: Copy-Item -Path .\Src\Couchbase.NetStandard\bin\Release -Filter "Couchbase.*" -Destination .\binaries\netstandard1.5 -Recurse
- ps: Compress-Archive -Path .\binaries\* -CompressionLevel Optimal -DestinationPath .\Couchbase-Net-Client-$env:APPVEYOR_BUILD_VERSION.zip
- ps: nuget pack .\src\Couchbase\Couchbase.nuspec -Properties "Configuration=Release;Platform=AnyCPU;" -version "$env:APPVEYOR_BUILD_VERSION"
artifacts:
- path: '*.zip'
- path: '*.nupkg'
test: off
deploy:
- provider: S3
access_key_id:
secure: suuUVO/OK/7edFaS0HYlm9ouHqd4SIMt8FAE/iAnRR4=
secret_access_key:
secure: Nh6AbaBk7P++ymDgtuY7OmkGoXR8s1X+lm5sIZ2Ao39Bw52HLhuPoqy8O3DsgMTQ
bucket: packages.couchbase.com
folder: clients/net/2.4/
artifact: /.*\.zip/
set_public: true
on:
appveyor_repo_tag: true
- provider: NuGet
server: https://www.myget.org/F/couchbasenetclient/api/v2/package
api_key:
secure: Cov0c7H0EvTAcF+4heoatFrtbFVvnz9PR0bTNbDKVTjcN47Vy1k2C3Siep6NsdA7
skip_symbols: true
artifact: /.*\.nupkg/
on:
appveyor_repo_tag: false
- provider: NuGet
server: hhttps://www.nuget.org/api/v2/package
api_key:
secure: RR63qaRziTfBDzeAHNLX/nNGavXrfzgXnSRniyuFgK493SzEw8DUa89bgVZHYSg8
skip_symbols: true
artifact: /.*\.nupkg/
on:
appveyor_repo_tag: true