forked from wallee-payment/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
16 lines (12 loc) · 740 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
echo "[INFO] remove src/Customweb.Wallee.Test/bin/Debug/Customweb.Wallee.Test.dll"
rm src/Customweb.Wallee.Test/bin/Debug/Customweb.Wallee.Test.dll 2> /dev/null
echo "[INFO] install NUnit runners via NuGet"
wget -nc https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe
mozroots --import --sync
mono nuget.exe install src/Customweb.Wallee.Test/packages.config -o packages
echo "[INFO] Install NUnit runners via NuGet"
mono nuget.exe install NUnit.Runners -Version 2.6.2 -OutputDirectory packages
echo "[INFO] Build the solution and run the unit test"
msbuild Customweb.Wallee.sln && \
mono ./packages/NUnit.Runners.2.6.2/tools/nunit-console.exe src/Customweb.Wallee.Test/bin/Debug/Customweb.Wallee.Test.dll