From 16fb2cee2684606c5e8b620c958220d2a1f83bbf Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 20 Jul 2016 15:37:14 +0200 Subject: [PATCH] Fix build batch (is it real? take3) --- appveyor.yml | 2 +- build/Build.bat | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index cb3f69bc87..60a9c23791 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,7 +36,7 @@ build_script: %MSBUILD% "../src/Umbraco.Tests/Umbraco.Tests.csproj" /consoleloggerparameters:Summary;ErrorsOnly;WarningsOnly /p:NugetPackagesDirectory=%nuGetFolder% - build.bat /integration /release:%release% /comment:build%APPVEYOR_BUILD_NUMBER% /nugetfolder:%nuGetFolder% + build.bat -integration -release:%release% -comment:build%APPVEYOR_BUILD_NUMBER% -nugetfolder:%nuGetFolder% ECHO %PATH% test: diff --git a/build/Build.bat b/build/Build.bat index ab0e129faf..0de0fa7e81 100644 --- a/build/Build.bat +++ b/build/Build.bat @@ -1,4 +1,4 @@ -@ECHO OFF +::@ECHO OFF :: UMBRACO BUILD FILE @@ -36,10 +36,15 @@ FOR /F "tokens=1,* delims=: " %%a IN ("%SWITCHPARSE%") DO SET SWITCH=%%a& SET VA :: route arg IF '%SWITCH%'=='/release' GOTO argRelease +IF '%SWITCH%'=='-release' GOTO argRelease IF '%SWITCH%'=='/comment' GOTO argComment +IF '%SWITCH%'=='-comment' GOTO argComment IF '%SWITCH%'=='/integration' GOTO argIntegration +IF '%SWITCH%'=='-integration' GOTO argIntegration IF '%SWITCH%'=='/nugetfolder' GOTO argNugetFolder +IF '%SWITCH%'=='-nugetfolder' GOTO argNugetFolder IF '%SWITCH%'=='/skipnuget' GOTO argSkipNuget +IF '%SWITCH%'=='-skipnuget' GOTO argSkipNuget ECHO "Invalid switch %SWITCH%" GOTO error @@ -81,6 +86,10 @@ ECHO. ECHO Building Umbraco %VERSION% ECHO. +ECHO INTEGRATION=%INTEGRATION% +ECHO nuGetPackages=%nuGetFolder% +GOTO :eof + SET MSBUILD="C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe" SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%