Changing CI to have build and testing in separate scripts.

This commit is contained in:
Harrison Deng 2020-02-23 18:50:21 -05:00
parent c3152ac888
commit 72a1ba903b
2 changed files with 6 additions and 6 deletions

6
jenkins_build.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
#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

View File

@ -1,9 +1,3 @@
#!/bin/sh
#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
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"