forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
28 lines (18 loc) · 903 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
#!/usr/bin/env bash
#exit if any command fails
set -e
artifactsFolder="./artifacts"
if [ -d $artifactsFolder ]; then
rm -R $artifactsFolder
fi
dotnet restore
xbuild /p:Configuration=ReleaseMono linq2db.Mono.sln
# Ideally we would use the 'dotnet test' command to test netcoreapp and net451 so restrict for now
# but this currently doesn't work due to https://github.com/dotnet/cli/issues/3073 so restrict to netcoreapp
dotnet build ./Source/project.json -c Release -f netstandard1.6
dotnet test ./Tests/Linq/project.json -c Release -f netcoreapp1.0 --where "cat != WindowsOnly"
# Instead, run directly with mono for the full .net version
# dotnet build ./test/TEST_PROJECT_NAME -c Release -f net451
if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe Tests/Linq/bin/ReleaseMono/linq2db.Tests.dll --where "cat != WindowsOnly"
fi