forked from googleapis/google-api-dotnet-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests_dotnetcore.sh
executable file
·22 lines (17 loc) · 1.06 KB
/
run_tests_dotnetcore.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Runs the .NET Core tests locally (Linux).
set -e
# Restore support libraries and tests.
dotnet restore Src/Support/GoogleApis.Core_dotnetcore/project.json --configfile NuGet.Core.Config
dotnet restore Src/Support/GoogleApis_dotnetcore/project.json --configfile NuGet.Core.Config
dotnet restore Src/Support/GoogleApis.Auth_dotnetcore/project.json --configfile NuGet.Core.Config
dotnet restore Src/Support/GoogleApis.Tests_dotnetcore/project.json --configfile NuGet.Core.Config
dotnet restore Src/Support/GoogleApis.Auth.Tests_dotnetcore/project.json --configfile NuGet.Core.Config
# Restore generated libraries and tests.
dotnet restore Src/Generated/Google.Apis.Discovery.v1/project.json --configfile NuGet.Core.Config
dotnet restore Src/GeneratedTests/Discovery.Tests/project.json --configfile NuGet.Core.Config
# Test support libraries.
dotnet test Src/Support/GoogleApis.Tests_dotnetcore/project.json
dotnet test Src/Support/GoogleApis.Auth.Tests_dotnetcore/project.json
# Test generated libraries.
dotnet test Src/GeneratedTests/Discovery.Tests/project.json