mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
15 lines
463 B
Bash
Executable File
15 lines
463 B
Bash
Executable File
#!/usr/bin/env bash
|
|
wget -nc https://nuget.org/nuget.exe;
|
|
mozroots --import --sync
|
|
|
|
# remove bin/Debug/SwaggerClientTest.dll
|
|
rm bin/Debug/SwaggerClientTest.dll 2> /dev/null
|
|
|
|
# install NUnit runners via NuGet
|
|
mono nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
|
|
|
|
# build the solution and run the unit test
|
|
xbuild SwaggerClientTest.sln && \
|
|
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe bin/Debug/SwaggerClientTest.dll
|
|
|