Skip to content

Commit 7530a07

Browse files
committed
ci: Move unit test scripts from the Kokoro folder
See b/388332379
1 parent 9133bb7 commit 7530a07

File tree

2 files changed

+28
-36
lines changed

2 files changed

+28
-36
lines changed

.kokoro/daily-unit-tests.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

RunUnitTests.sh

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
11
#!/bin/bash
22

3-
set -e
3+
# This script:
4+
# - Builds generated packages
5+
# - Builds support packages
6+
# - Runs unit tests for support packages
47

5-
dotnet build Src/Support/GoogleApisClient.sln
6-
dotnet test --no-restore Src/Support/Google.Apis.Auth.Tests/Google.Apis.Auth.Tests.csproj
7-
dotnet test --no-restore Src/Support/Google.Apis.Tests/Google.Apis.Tests.csproj
8+
set -ex
9+
10+
# To avoid printing the dotnet CLI welcome message
11+
export DOTNET_NOLOGO=true
12+
13+
cd Src/Generated
14+
15+
PROJECTS=$(dir)
16+
echo "Building generated packages"
17+
for project in $PROJECTS
18+
do
19+
dotnet build $project
20+
done
21+
22+
cd ../Support
23+
24+
echo "Building support packages"
25+
dotnet build GoogleApisClient.sln
26+
27+
echo "Unit testing support packages"
28+
dotnet test --no-restore Google.Apis.Auth.Tests
29+
dotnet test --no-restore Google.Apis.Tests
30+
31+
echo "Build and unit testing completed"

0 commit comments

Comments
 (0)