Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix package version suffix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
felschr committed Mar 2, 2017
1 parent 0f892b6 commit 28ea26e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- ps: $DotnetVersionPrefix = ${CSPROJ}.Project.PropertyGroup.VersionPrefix
- ps: $IsStableBranch = ${env:APPVEYOR_REPO_BRANCH} -eq "netcore"
- ps: $VersionSuffix = (&{If($IsStableBranch) { "" } Else { "-${env:APPVEYOR_REPO_BRANCH}-${env:APPVEYOR_BUILD_NUMBER}" }})
- ps: $VersionSuffixPlain = $VersionSuffix.TrimStart("-")
- ps: $NewBuildVersion = "${DotnetVersionPrefix}" + "$VersionSuffix"
- ps: Update-AppveyorBuild -Version $NewBuildVersion
# Install DocumentDB Emulator
Expand All @@ -36,13 +37,13 @@
echo "Building ${env:CONFIGURATION}: build ${env:APPVEYOR_BUILD_NUMBER}"
build_script:
- ps: dotnet build "src\AspNetCore.Identity.DocumentDB\AspNetCore.Identity.DocumentDB.csproj" -c ${env:CONFIGURATION} --version-suffix $VersionSuffix
- ps: dotnet build "src\AspNetCore.Identity.DocumentDB\AspNetCore.Identity.DocumentDB.csproj" -c ${env:CONFIGURATION} --version-suffix $VersionSuffixPlain

test_script:
- ps: dotnet test "test\CoreTests\CoreTests.csproj" -c ${env:CONFIGURATION}
- ps: dotnet test "test\CoreIntegrationTests\CoreIntegrationTests.csproj" -c ${env:CONFIGURATION}
after_test:
- ps: dotnet pack "src\AspNetCore.Identity.DocumentDB" -c ${env:CONFIGURATION} -o artifacts --version-suffix $VersionSuffix
- ps: dotnet pack "src\AspNetCore.Identity.DocumentDB" -c ${env:CONFIGURATION} -o artifacts --version-suffix $VersionSuffixPlain

artifacts:
- path: '**\artifacts\**\*.nupkg'
Expand Down

0 comments on commit 28ea26e

Please sign in to comment.