buildall.sh 537 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/bash

CONFIG=Release
SRC=$(dirname $0)/src

set -ex

8
echo Building relevant projects.
9 10
dotnet restore $SRC/Google.Protobuf.sln
dotnet build -c $CONFIG $SRC/Google.Protobuf.sln
11

12
echo Running tests.
13
# Only test netcoreapp2.1, which uses the .NET Core runtime.
14 15
# If we want to test the .NET 4.5 version separately, we could
# run Mono explicitly. However, we don't have any differences between
16 17
# the .NET 4.5 and netstandard2.1 assemblies.
dotnet test -c $CONFIG -f netcoreapp2.1 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj