Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 2 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 3 | CONFIG=Release |
| 4 | SRC=$(dirname $0)/src |
| 5 | |
| 6 | set -ex |
| 7 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame] | 8 | echo Building relevant projects. |
| 9 | dotnet restore $SRC/Google.Protobuf.sln |
| 10 | dotnet build -c $CONFIG $SRC/Google.Protobuf.sln |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 11 | |
| 12 | echo Running tests. |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame] | 13 | # 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. |
| 17 | dotnet test -c $CONFIG -f netcoreapp1.0 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj |