mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
updated build scripts
This commit is contained in:
parent
921f138344
commit
35fa32c090
2
build-and-run-tests.bat
Normal file
2
build-and-run-tests.bat
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
./run-tests.bat
|
||||||
|
./build.bat
|
13
build.bat
13
build.bat
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user