File size: 596 Bytes
7b715bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

# This script:
# - Builds generated packages
# - Builds support packages
# - Runs unit tests for support packages

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"