forked from googleapis/gax-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·37 lines (27 loc) · 973 Bytes
/
build.sh
File metadata and controls
executable file
·37 lines (27 loc) · 973 Bytes
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
33
34
35
36
37
#!/bin/bash
set -e
cd $(dirname $0)
# Clean up previous builds
rm -rf {src,test,testing}/*/bin {src,test,testing}/*/obj
# Make sure that SourceLink uses the GitHub repo, even if that's not where
# our origin remote points at.
git remote add github https://github.com/googleapis/gax-dotnet
export GitRepositoryRemoteName=github
export Configuration=Release
export ContinuousIntegrationBuild=true
echo Building
dotnet build -nologo -clp:NoSummary -v quiet Gax.sln
echo Testing
for testproject in *.Tests
do
# This will run the tests on every platform
# defined for the project.
dotnet test -nologo --no-build $testproject
done
# Even though we don't use the generated packages on most
# builds, it's good to make sure we always *can* pack.
echo Packing
dotnet pack Gax.sln --no-build -o $PWD/nuget
# Remove the github remote so that if there are multiple iterations
# against the same clone, the "git remote add" earlier will work.
git remote remove github