forked from armutcom/CacheManager.Serialization.Hyperion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
34 lines (22 loc) · 1.07 KB
/
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.2-api/
dotnet restore ./src/CacheManager.Serialization.Hyperion.sln
# Linux/Darwin
OSNAME=$(uname -s)
echo "OSNAME: $OSNAME"
dotnet build ./src/Tests/CacheManager.Serialization.Hyperion.Tests/CacheManager.Serialization.Hyperion.Tests.csproj /p:Configuration=Release || exit 1
sudo nuget install xunit.runner.console -OutputDirectory testrunner
echo --------------------
echo Running NET452 Tests
echo --------------------
mono ./testrunner/xunit.runner.console.*/tools/net452/xunit.console.exe ./src/Tests/CacheManager.Serialization.Hyperion.Tests/bin/Release/net452/CacheManager.Serialization.Hyperion.Tests.dll
echo --------------------
echo Running NETCORE2 Tests
echo --------------------
dotnet test -c Release ./src/Tests/CacheManager.Serialization.Hyperion.Tests -f netcoreapp2.0
echo --------------------
echo Running NETCORE1 Tests
echo --------------------
dotnet test -c Release ./src/Tests/CacheManager.Serialization.Hyperion.Tests -f netcoreapp1.1