forked from robotdotnet/NetworkTables
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetcore.sh
More file actions
executable file
·49 lines (35 loc) · 1.11 KB
/
netcore.sh
File metadata and controls
executable file
·49 lines (35 loc) · 1.11 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
#exit if any command fails
set -e
debug=false
skipNtCore=false
if [ "$debug" = false ] ; then
configuration="-c Release"
else
configuration="-c Debug"
fi
if [ "$debug" = true ] ; then
libLoc="bin/Debug"
else
libLoc="bin/Release"
fi
function Build {
dotnet restore
dotnet build ./src/FRC.NetworkTables $configuration
dotnet build ./src/FRC.NetworkTables.Core $configuration
}
function Test {
dotnet restore
dotnet test ./test/NetworkTables.Test $configuration -f netcoreapp1.0
if [ "$skipNtCore" = false ] ; then
dotnet test ./test/NetworkTables.Core.Test $configuration -f netcoreapp1.0
fi
dotnet build test/NetworkTables.Test $configuration -f net46
mono test/NetworkTables.Test/$libLoc/net46/*/dotnet-test-nunit.exe test/NetworkTables.Test/$libLoc/net46/*/NetworkTables.Test.dll
if [ "$skipNtCore" = false ] ; then
dotnet build ./test/NetworkTables.Core.Test $configuration -f net451
mono test/NetworkTables.Core.Test/$libLoc/net451/*/dotnet-test-nunit.exe test/NetworkTables.Core.Test/$libLoc/net451/*/NetworkTables.Core.Test.dll
fi
}
Build
Test