2016-07-31 20:44:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
CONFIG=Release
|
|
|
|
SRC=$(dirname $0)/src
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2018-05-05 00:30:16 +00:00
|
|
|
echo Building relevant projects.
|
|
|
|
dotnet restore $SRC/Google.Protobuf.sln
|
|
|
|
dotnet build -c $CONFIG $SRC/Google.Protobuf.sln
|
2016-07-31 20:44:31 +00:00
|
|
|
|
|
|
|
echo Running tests.
|
2018-05-05 00:30:16 +00:00
|
|
|
# Only test netcoreapp1.0, which uses the .NET Core runtime.
|
|
|
|
# If we want to test the .NET 4.5 version separately, we could
|
|
|
|
# run Mono explicitly. However, we don't have any differences between
|
|
|
|
# the .NET 4.5 and netstandard1.0 assemblies.
|
|
|
|
dotnet run -c $CONFIG -f netcoreapp1.0 -p $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj
|