forked from iyzico/iyzipay-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
34 lines (22 loc) · 838 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
#exit if any command fails
set -e
export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/
dotnet restore Iyzipay.sln
# Linux/Darwin
OSNAME=$(uname -s)
echo "OSNAME: $OSNAME"
dotnet build ./Iyzipay.Tests/Iyzipay.Tests.csproj /p:Configuration=Release || exit 1
sudo nuget install NUnit.ConsoleRunner -OutputDirectory testrunner
echo --------------------
echo Running NET45 Tests
echo --------------------
mono ./testrunner/NUnit.ConsoleRunner.*/tools/nunit3-console.exe ./Iyzipay.Tests/bin/Release/net45/Iyzipay.Tests.dll
echo --------------------
echo Running NETCORE2 Tests
echo --------------------
dotnet test ./Iyzipay.Tests -c Release -f netcoreapp2.0
echo --------------------
echo Running NETCORE1 Tests
echo --------------------
dotnet test ./Iyzipay.Tests -c Release -f netcoreapp1.1