Repository navigation
Expand file tree
/
Copy pathappveyor.yml
More file actions
68 lines (68 loc) · 2.27 KB
/
Copy pathappveyor.yml
File metadata and controls
68 lines (68 loc) · 2.27 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
-
branches:
only:
- main
configuration: AppVeyor
artifacts:
- path: '**\RoodFluweel.PAYNLSDK.*.nupkg' # find all NuGet packages recursively
name: MyApp
- path: '**\RoodFluweel.PAYNLSDK.*.snupkg' # find all NuGet PDB packages recursively
name: MyPdb
deploy:
- provider: NuGet
api_key:
secure: MMEb4m3xRwHevHeNtSz0MjjUhPhrSLtVSgef+c4BvMQNXSt08G0FSLPMmq4zzctJ
skip_symbols: false
artifact: MyApp
- provider: GitHub
auth_token:
secure: ESgt0MBSQKBv9WUFEuCzuimtjHdAdUCtLX2jV/zAMzI7LVD6TMUadF0SKvKkLcCK
artifact: MyApp
# AppVeyor does not support snupkg yet : https://github.com/appveyor/ci/issues/2753
# - provider: NuGet
# api_key:
# secure: pd9kF0t0Bt6BExgB0t6xEQT9pAlFrRhFZDl6LDGTZjtgaI4nd4ilIongUFWZKLOO
# skip_symbols: false
# artifact: MyPdb
os: Visual Studio 2017
install:
- choco install gitversion.portable -pre -y
- ps: gitversion /l console /output buildserver
assembly_info:
patch: false
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
build:
project: PAYNLSDK.sln
before_build:
- dotnet restore
# - ps: .\build.ps1
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- '%USERPROFILE%\.nuget\packages -> **\project.json' # project.json cache
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
-
configuration: AppVeyor
os: Visual Studio 2017
build:
project: PAYNLSDK.sln
before_build:
- dotnet restore
- ps: gitversion /l console /output buildserver
- ps: .\build.ps1
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- '%USERPROFILE%\.nuget\packages -> **\project.json' # project.json cache
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
test:
assemblies:
only:
- PayNLSdk.Tests/bin/**/PayNLSdk.Tests.dll