forked from eBay/ebay-oauth-csharp-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·29 lines (19 loc) · 885 Bytes
/
build.sh
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
dotnet restore
dotnet build
cd Tools
dotnet restore
# # Instrument assemblies inside 'test' folder to detect hits for source files inside 'src' folder
# dotnet minicover instrument --workdir ../ --assemblies Tests/**/bin/**/*.dll --sources ebay-oauth-csharp-client/**/*.cs
# # Reset hits count in case minicover was run for this project
# dotnet minicover reset --workdir ../
cd ..
dotnet test --no-build Tests/ebay-oauth-csharp-client-tests.csproj
cd Tools
# # Uninstrument assemblies, it's important if you're going to publish or deploy build outputs
# dotnet minicover uninstrument --workdir ../
# # Create html reports inside folder coverage-html
# dotnet minicover htmlreport --workdir ../ --threshold 80
# # Print console report
# # This command returns failure if the coverage is lower than the threshold
# dotnet minicover report --workdir ../ --threshold 80
# cd ..