Skip to content

Commit

Permalink
Testing a continous build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnashOommen authored Jul 2, 2018
1 parent fd32a56 commit 4c86c12
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions buildscript/build.bat
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
@echo off

:: Save the path of the build script.
set BuildScriptPath=%~dp0

:: Strip trailing backslash.
set RootPath=%BuildScriptPath:~0,-1%\..

echo Build the library.
echo ==================

dotnet build ..\src\Google.Ads.GoogleAds.csproj
dotnet build "%RootPath%\src\Google.Ads.GoogleAds.csproj"
if %errorlevel% neq 0 exit /b %errorlevel%

echo Build the examples.
echo ===================
dotnet build ..\examples\Services\Google.Ads.GoogleAds.Examples.csproj
dotnet build "%RootPath%\examples\Services\Google.Ads.GoogleAds.Examples.csproj"
if %errorlevel% neq 0 exit /b %errorlevel%

echo Run the tests.
echo ==============
dotnet build ..\tests\Google.Ads.GoogleAds.Tests.csproj
@echo on

exit /b %ERRORLEVEL%
dotnet build "%RootPath%\tests\Google.Ads.GoogleAds.Tests.csproj"
if %errorlevel% neq 0 exit /b %errorlevel%

@echo on
exit /b 0

0 comments on commit 4c86c12

Please sign in to comment.