Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
dotnet pack src/CallPolly --configuration Release -o "%CD%\bin" --version-suffix CI%1
SETLOCAL
SET X=%1
SET BLD=000000%X%
SET BLD=%BLD:~-7%
if [%2]==[] (SET V=CI%BLD%) else (SET V=pr%2-%BLD%)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is looking more and more like a job for a build.proj ;)


dotnet pack src/CallPolly --configuration Release -o "%CD%\bin" --version-suffix %V%
if ERRORLEVEL 1 (echo Error building CallPolly; exit /b 1)

dotnet test tests/CallPolly.Tests --configuration Release
if ERRORLEVEL 1 (echo Error testing CallPolly; exit /b 1)

dotnet test tests/CallPolly.Acceptance --configuration Release
if ERRORLEVEL 1 (echo Error acceptance testing CallPolly; exit /b 1)
if ERRORLEVEL 1 (echo Error acceptance testing CallPolly; exit /b 1)

ENDLOCAL