Skip to content

Commit

Permalink
Update build.cmd to always create artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
gottscj committed Jun 18, 2017
1 parent bc5c461 commit dd9d03a
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions build/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,19 @@ set sources_path="%cd%\src"
set build_output="%artifacts_sources_path%\Hangfire.Mongo\bin\Any CPU\Release"
set nuget="%sources_path%\.nuget\NuGet.exe"

echo build number : %APPVEYOR_BUILD_NUMBER%
echo build tag : %APPVEYOR_REPO_TAG%
echo build version: %APPVEYOR_BUILD_VERSION%

if %msbuild% == "" (
echo No MSBuild found.
exit /B 1
)

if "%APPVEYOR_REPO_TAG%"=="true" goto deploy

:build
rem BUILD
echo Restoring NuGet packages...
%nuget% restore %sources_path%\Hangfire.Mongo.sln

echo build project using selected MSBuild
%msbuild% %sources_path%\Hangfire.Mongo.sln /t:Rebuild /p:Configuration="Release" /p:Platform="Any CPU"

if errorlevel 1 (
echo Build failed.
exit /B 1
)

exit /B 0

:deploy
rem DEPLOY
rem CREATE ARTIFACTS
echo delete and create artifacts folders
rmdir artifacts /s /q

Expand Down

0 comments on commit dd9d03a

Please sign in to comment.