-
Notifications
You must be signed in to change notification settings - Fork 87
/
appveyor.yml
33 lines (33 loc) · 1.52 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
version: '{build}'
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
configuration:
- Release
artifacts:
- path: .\artifacts\*.nupkg
name: NuGet
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
before_build:
- appveyor-retry dotnet restore zipkin4net.sln --verbosity Minimal
build_script:
- dotnet build "zipkin4net.sln" -c %CONFIGURATION%
after_build:
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (dotnet pack /p:PackageVersion="%APPVEYOR_REPO_TAG_NAME%" "Src\zipkin4net\Src\zipkin4net.csproj" -c %CONFIGURATION% --no-build --no-restore -o %APPVEYOR_BUILD_FOLDER%\artifacts)
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (dotnet pack /p:PackageVersion="%APPVEYOR_REPO_TAG_NAME%" "Src\zipkin4net.middleware.aspnetcore\Src\zipkin4net.middleware.aspnetcore.csproj" -c %CONFIGURATION% --no-build --no-restore -o %APPVEYOR_BUILD_FOLDER%\artifacts)
- cmd: IF "%APPVEYOR_REPO_TAG%" == "true" (dotnet pack /p:PackageVersion="%APPVEYOR_REPO_TAG_NAME%" "Src\zipkin4net.middleware.owin\Src\zipkin4net.middleware.owin.csproj" -c %CONFIGURATION% --no-build --no-restore -o %APPVEYOR_BUILD_FOLDER%\artifacts)
test_script:
- dotnet test "Src/zipkin4net/Tests/zipkin4net.Tests.csproj" -c %CONFIGURATION%
- dotnet test "Src/zipkin4net.middleware.owin/Tests/zipkin4net.middleware.owin.Tests.csproj" -c %CONFIGURATION%
cache:
- '%USERPROFILE%\.nuget\packages'
deploy:
- provider: NuGet
name: production
api_key:
secure: ASrTNnYSMbnYqq7lc0v/1yr14sj0Z+xuaAJQ3pY9ET85IRDSxd5dq33EG78I+9ig
on:
branch: master
appveyor_repo_tag: true