buildall.sh 537 B

1234567891011121314151617
  1. #!/bin/bash
  2. CONFIG=Release
  3. SRC=$(dirname $0)/src
  4. set -ex
  5. echo Building relevant projects.
  6. dotnet restore $SRC/Google.Protobuf.sln
  7. dotnet build -c $CONFIG $SRC/Google.Protobuf.sln
  8. echo Running tests.
  9. # Only test netcoreapp2.1, which uses the .NET Core runtime.
  10. # If we want to test the .NET 4.5 version separately, we could
  11. # run Mono explicitly. However, we don't have any differences between
  12. # the .NET 4.5 and netstandard2.1 assemblies.
  13. dotnet test -c $CONFIG -f netcoreapp2.1 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj