-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Move unit test scripts from the Kokoro folder
See b/388332379
- Loading branch information
1 parent
9133bb7
commit 7530a07
Showing
2 changed files
with
28 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
# This script: | ||
# - Builds generated packages | ||
# - Builds support packages | ||
# - Runs unit tests for support packages | ||
|
||
dotnet build Src/Support/GoogleApisClient.sln | ||
dotnet test --no-restore Src/Support/Google.Apis.Auth.Tests/Google.Apis.Auth.Tests.csproj | ||
dotnet test --no-restore Src/Support/Google.Apis.Tests/Google.Apis.Tests.csproj | ||
set -ex | ||
|
||
# To avoid printing the dotnet CLI welcome message | ||
export DOTNET_NOLOGO=true | ||
|
||
cd Src/Generated | ||
|
||
PROJECTS=$(dir) | ||
echo "Building generated packages" | ||
for project in $PROJECTS | ||
do | ||
dotnet build $project | ||
done | ||
|
||
cd ../Support | ||
|
||
echo "Building support packages" | ||
dotnet build GoogleApisClient.sln | ||
|
||
echo "Unit testing support packages" | ||
dotnet test --no-restore Google.Apis.Auth.Tests | ||
dotnet test --no-restore Google.Apis.Tests | ||
|
||
echo "Build and unit testing completed" |