This commit is contained in:
Tomas Matousek 2018-03-17 17:22:07 -07:00 коммит произвёл Tomáš Matoušek
Родитель f35b3012d8
Коммит bbeba7ade4
6 изменённых файлов: 11 добавлений и 12 удалений

Просмотреть файл

@ -1,3 +1,3 @@
@echo off
powershell -ExecutionPolicy ByPass %~dp0eng\common\Build.ps1 -restore -build %*
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0eng\common\Build.ps1' -restore -build %*}
exit /b %ErrorLevel%

Просмотреть файл

@ -1,3 +1,3 @@
@echo off
powershell -ExecutionPolicy ByPass %~dp0eng\common\Build.ps1 -restore %*
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0eng\common\Build.ps1' -restore %*}
exit /b %ErrorLevel%

Просмотреть файл

@ -1,3 +1,3 @@
@echo off
powershell -ExecutionPolicy ByPass %~dp0eng\common\Build.ps1 -test %*
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0eng\common\Build.ps1' -test %*}
exit /b %ErrorLevel%

Просмотреть файл

@ -1,3 +1,3 @@
@echo off
powershell -ExecutionPolicy ByPass %~dp0build.ps1 -restore -build -test -sign -pack -ci %*
powershell -ExecutionPolicy ByPass -command "& {&'%~dp0Build.ps1' -restore -build -test -sign -pack -ci %*}
exit /b %ErrorLevel%

Просмотреть файл

@ -108,10 +108,7 @@ function InstallToolset {
}
function Build {
Create-Directory($logDir)
$logCmd = "/bl:" + (Join-Path $LogDir "Build.binlog")
& $BuildDriver $BuildArgs $ToolsetBuildProj /m /nologo /clp:Summary /warnaserror /v:$verbosity $logCmd /p:Configuration=$configuration /p:Projects=$solution /p:Restore=$restore /p:DeployDeps=$deployDeps /p:Build=$build /p:Rebuild=$rebuild /p:Deploy=$deploy /p:Test=$test /p:IntegrationTest=$integrationTest /p:Sign=$sign /p:Pack=$pack /p:CIBuild=$ci /p:NuGetPackageRoot=$NuGetPackageRoot $properties
& $BuildDriver $BuildArgs $ToolsetBuildProj /m /nologo /clp:Summary /warnaserror /v:$verbosity /bl:$Log /p:Configuration=$configuration /p:Projects=$solution /p:RepoRoot=$RepoRoot /p:Restore=$restore /p:DeployDeps=$deployDeps /p:Build=$build /p:Rebuild=$rebuild /p:Deploy=$deploy /p:Test=$test /p:IntegrationTest=$integrationTest /p:Sign=$sign /p:Pack=$pack /p:CIBuild=$ci /p:NuGetPackageRoot=$NuGetPackageRoot $properties
}
function Stop-Processes() {
@ -130,9 +127,10 @@ function Clear-NuGetCache() {
}
try {
$RepoRoot = Join-Path $PSScriptRoot "..\..\"
$RepoRoot = Join-Path $PSScriptRoot "..\.."
$ArtifactsDir = Join-Path $RepoRoot "artifacts"
$LogDir = Join-Path (Join-Path $ArtifactsDir $configuration) "log"
$Log = Join-Path $LogDir "Build.binlog"
$TempDir = Join-Path (Join-Path $ArtifactsDir $configuration) "tmp"
$GlobalJson = Get-Content(Join-Path $RepoRoot "global.json") | ConvertFrom-Json
@ -172,7 +170,8 @@ try {
}
Create-Directory $TempDir
Create-Directory $LogDir
if ($ci) {
$env:TEMP = $TempDir
$env:TMP = $TempDir

Просмотреть файл

@ -265,9 +265,9 @@ function Build {
fi
dotnet msbuild $toolsetbuildproj /m /nologo /clp:Summary /warnaserror \
/v:$verbosity $logcmd /p:Configuration=$configuration /p:Projects=$solution \
/v:$verbosity $logcmd /p:Configuration=$configuration /p:Projects=$solution /p:RepoRoot="$reporoot" \
/p:Restore=$restore /p:Build=$build /p:Rebuild=$rebuild /p:Deploy=$deploy /p:Test=$test /p:Sign=$sign /p:Pack=$pack /p:CIBuild=$ci \
"/p:RestorePackagesPath=$nugetpackageroot/" "/p:NuGetPackageRoot=$nugetpackageroot/" \
/p:RestorePackagesPath="$nugetpackageroot/" /p:NuGetPackageRoot="$nugetpackageroot/" \
$properties
local lastexitcode=$?