-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
49 lines (39 loc) · 1.18 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
install:
- choco install GitVersion.Portable -y
pull_requests:
do_not_increment_build_number: true
init:
- git config --global core.autocrlf true
nuget:
disable_publish_on_pr: true
skip_tags: true
before_build:
# Display .net version
- dotnet --version
# Display minimal restore text
- dotnet restore --verbosity m
# Run the automatic versioning
- gitversion %APPVEYOR_BUILD_FOLDER% /l console /output buildserver /updateAssemblyInfo /nofetch /b %APPVEYOR_REPO_BRANCH%
build_script:
# Build all the things!
- dotnet build --no-restore
test_script:
# Test all the things!
- dotnet test --no-build --no-restore
after_test:
- dotnet pack -c Release -o ../packages -p:PackageVersion=%GitVersion_NuGetVersion%
- ps: Get-ChildItem packages\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
deploy:
- provider: NuGet
api_key:
secure: msDwO0JAo+DsuDtqwM+dkmEiAEe8xEVNJKkVmWmm9HdheHfSlU7BAqGvS1KvrkKf
artifact: /.*\.nupkg/
on:
branch: develop
- provider: NuGet
api_key:
secure: msDwO0JAo+DsuDtqwM+dkmEiAEe8xEVNJKkVmWmm9HdheHfSlU7BAqGvS1KvrkKf
skip_symbols: true
artifact: /.*\.nupkg/
on:
branch: master