Skip to content

Commit

Permalink
Update build scripts to pack for us
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Craver committed May 19, 2016
1 parent ad5378f commit 06cd005
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,10 @@ if ($LASTEXITCODE -ne 0)
throw "dotnet restore failed with exit code $LASTEXITCODE"
}

& $dotnet pack "Dapper" --configuration Release --output "artifacts\packages"
& $dotnet pack "Dapper.Contrib" --configuration Release --output "artifacts\packages"

# Build all
# Note the exclude: https://github.com/dotnet/cli/issues/1342
dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.EntityFramework.StrongName" } |
foreach {
pushd "$_"
& $dotnet build
popd
dir "Dapper*" | where {$_.PsIsContainer} |
foreach {
& $dotnet build "$_"
}
# Run tests
dir "*.Tests*" | where {$_.PsIsContainer} |
Expand All @@ -55,6 +49,11 @@ foreach {
& $dotnet test
popd
}
# Package all
dir "Dapper*" | where {$_.PsIsContainer -and $_ -NotLike "*.Tests*" } |
foreach {
& $dotnet pack "$_" -c Release -o .\.nupkg\
}

ls */*/project.json | foreach { echo $_.FullName} |
foreach {
Expand Down

0 comments on commit 06cd005

Please sign in to comment.