Skip to content

Commit

Permalink
Updated sample projects to build only and not package.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Oct 16, 2015
1 parent 0873f87 commit 19c0c4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ function Restore-Packages
}

function Build-Project
{
param([string] $DirectoryName)
& dnu build ("""" + $DirectoryName + """") --configuration Release; if($LASTEXITCODE -ne 0) { exit 1 }
}

function Package-Project
{
param([string] $DirectoryName)
& dnu pack ("""" + $DirectoryName + """") --configuration Release --out .\artifacts\packages; if($LASTEXITCODE -ne 0) { exit 1 }
Expand Down Expand Up @@ -94,7 +100,7 @@ $env:DNX_BUILD_VERSION = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1}[$env
Write-Host "Build number:" $env:DNX_BUILD_VERSION

# Build/package
Get-ChildItem -Path .\src -Filter *.xproj -Recurse | ForEach-Object { Build-Project $_.DirectoryName }
Get-ChildItem -Path .\src -Filter *.xproj -Recurse | ForEach-Object { Package-Project $_.DirectoryName }
Get-ChildItem -Path .\samples -Filter *.xproj -Recurse | ForEach-Object { Build-Project $_.DirectoryName }

# Publish tests so we can test without recompiling
Expand Down

0 comments on commit 19c0c4b

Please sign in to comment.