forked from titarenko/OAuth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
30 lines (23 loc) · 810 Bytes
/
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
version: 0.9.{build}
os: Visual Studio 2017
clone_depth: 2
configuration: Release
pull_requests:
do_not_increment_build_number: true
init:
- git config --global core.autocrlf input
- ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
- ps: If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="pre" }
- ps: 'Write-Output "Version: $($env:APPVEYOR_BUILD_VERSION)-$($env:VERSION_SUFFIX)"'
before_build:
- ps: .\build\Set-BuildVersion -Version $env:APPVEYOR_BUILD_VERSION -Suffix $env:VERSION_SUFFIX
- appveyor-retry dotnet restore -v Minimal
build_script:
- ps: dotnet build -c Release
test_script:
- ps: dotnet test .\OAuth2.Tests\OAuth2.Tests.csproj -f netcoreapp2.0
after_test:
- ps: dotnet pack -c Release
artifacts:
- path: artifacts\*.nupkg
name: NuGet