blob: 50d8906dceb44f9eeac95f0103f854a867852e4a [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001#!/bin/bash
Brian Silverman9c614bc2016-02-15 20:20:02 -05002
Brian Silverman9c614bc2016-02-15 20:20:02 -05003CONFIG=Release
4SRC=$(dirname $0)/src
5
6set -ex
7
Austin Schuh40c16522018-10-28 20:27:54 -07008echo Building relevant projects.
9dotnet restore $SRC/Google.Protobuf.sln
10dotnet build -c $CONFIG $SRC/Google.Protobuf.sln
Brian Silverman9c614bc2016-02-15 20:20:02 -050011
12echo Running tests.
Austin Schuh40c16522018-10-28 20:27:54 -070013# Only test netcoreapp1.0, which uses the .NET Core runtime.
14# If we want to test the .NET 4.5 version separately, we could
15# run Mono explicitly. However, we don't have any differences between
16# the .NET 4.5 and netstandard1.0 assemblies.
17dotnet test -c $CONFIG -f netcoreapp1.0 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj