updated build scripts

This commit is contained in:
tom.pallister 2016-10-14 08:26:51 +01:00
parent 921f138344
commit 35fa32c090
3 changed files with 9 additions and 14 deletions

2
build-and-run-tests.bat Normal file
View File

@ -0,0 +1,2 @@
./run-tests.bat
./build.bat

View File

@ -1,22 +1,11 @@
echo ------------------------- echo -------------------------
echo Running Ocelot.UnitTests
dotnet restore test/Ocelot.UnitTests/
dotnet test test/Ocelot.UnitTests/
echo Running Ocelot.AcceptanceTests
cd test/Ocelot.AcceptanceTests/
dotnet restore
dotnet test
cd ../../
echo Building Ocelot echo Building Ocelot
dotnet restore src/Ocelot dotnet restore src/Ocelot
dotnet restore src/Ocelot.Library dotnet restore src/Ocelot.Library
dotnet build src/Ocelot dotnet build src/Ocelot
dotnet pack src/Ocelot/project.json --no-build --output nupkgs
dotnet publish src/Ocelot -o site/wwwroot dotnet publish src/Ocelot -o site/wwwroot

View File

@ -1,12 +1,16 @@
echo ------------------------- echo -------------------------
echo Running Ocelot.UnitTests echo Restoring Ocelot
dotnet restore src/Ocelot
echo Restoring Ocelot
dotnet restore src/Ocelot.Library
echo Running Ocelot.UnitTests
dotnet restore test/Ocelot.UnitTests/ dotnet restore test/Ocelot.UnitTests/
dotnet test test/Ocelot.UnitTests/ dotnet test test/Ocelot.UnitTests/
echo Running Ocelot.AcceptanceTests echo Running Ocelot.AcceptanceTests
cd test/Ocelot.AcceptanceTests/ cd test/Ocelot.AcceptanceTests/
dotnet restore dotnet restore
dotnet test dotnet test