2015-05-13 02:27:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
CONFIG=Release
|
|
|
|
SRC=$(dirname $0)/src
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-07-14 21:01:47 +00:00
|
|
|
echo Building relevant projects.
|
2017-05-04 07:51:46 +00:00
|
|
|
dotnet restore $SRC/Google.Protobuf.sln
|
|
|
|
dotnet build -c $CONFIG $SRC/Google.Protobuf.sln
|
2015-05-13 02:27:53 +00:00
|
|
|
|
2015-06-25 07:59:35 +00:00
|
|
|
echo Running tests.
|
2019-03-12 08:40:46 +00:00
|
|
|
# Only test netcoreapp2.1, which uses the .NET Core runtime.
|
2016-07-14 21:01:47 +00:00
|
|
|
# If we want to test the .NET 4.5 version separately, we could
|
|
|
|
# run Mono explicitly. However, we don't have any differences between
|
2019-03-12 08:40:46 +00:00
|
|
|
# the .NET 4.5 and netstandard2.1 assemblies.
|
|
|
|
dotnet test -c $CONFIG -f netcoreapp2.1 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj
|