Skip to content

Commit

Permalink
ci: Move unit test scripts from the Kokoro folder
Browse files Browse the repository at this point in the history
See b/388332379
  • Loading branch information
amanda-tarafa committed Jan 7, 2025
1 parent 9133bb7 commit 7530a07
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 36 deletions.
32 changes: 0 additions & 32 deletions .kokoro/daily-unit-tests.sh

This file was deleted.

32 changes: 28 additions & 4 deletions RunUnitTests.sh
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"

0 comments on commit 7530a07

Please sign in to comment.