Separated builds and tests.
This commit is contained in:
parent
029932910d
commit
321f8ecf79
@ -2,5 +2,19 @@
|
||||
#Create directories if not created.
|
||||
mkdir -p TestFiles/NUnit.Runners
|
||||
nuget install Nunit.Runners -OutputDirectory TestFiles/NUnit.Runners
|
||||
dotnet restore RecrownedGTK.sln
|
||||
msbuild RecrownedGTK.sln
|
||||
|
||||
#Build RecrownedGTK and tests.
|
||||
echo "Building RecrownedGTK..."
|
||||
nuget restore RecrownedGTK/RecrownedGTK.csproj
|
||||
msbuild RecrownedGTK/RecrownedGTK.csproj
|
||||
echo "Building RecrownedGTK.Tests..."
|
||||
nuget restore RecrownedGTK.Tests/RecrownedGTK.Tests.csproj
|
||||
msbuild RecrownedGTK.Tests/RecrownedGTK.Tests.csproj
|
||||
|
||||
#Build RecrownedGTK.Tools and tests.
|
||||
echo "Building RecrownedGTK.Tools..."
|
||||
nuget restore RecrownedGTK.Tools/RecrownedGTK.Tools.csproj
|
||||
msbuild RecrownedGTK.Tools/RecrownedGTK.Tools.csproj
|
||||
echo "Building RecrownedGTK.Tools.Tests..."
|
||||
nuget restore RecrownedGTK.Tools.Tests/RecrownedGTK.Tools.Tests.csproj
|
||||
msbuild RecrownedGTK.Tools.Tests/RecrownedGTK.Tools.Tests.csproj
|
@ -1,3 +1,4 @@
|
||||
mkdir -p TestFiles/Results
|
||||
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe RecrownedGTK.sln --result=nunit3 --output "Results/build_${BUILD_ID}_log.txt" --work="TestFiles"
|
||||
cp TestFiles/nunit3 "TestFiles/Results/build_${BUILD_ID}_results.xml"
|
||||
#!/bin/sh
|
||||
#Tests
|
||||
mkdir -p TestFiles
|
||||
TestFiles/NUnit.Runners/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe "RecrownedGTK.Tests/RecrownedGTK.Tests.csproj" "RecrownedGTK.Tools.Tests/RecrownedGTK.Tools.Tests.csproj" --result=nunit3 --work="TestFiles"
|
Loading…
Reference in New Issue
Block a user