Initialize CBDD solution and add a .NET-focused gitignore for generated artifacts.
This commit is contained in:
17
scripts/coverage-check.sh
Executable file
17
scripts/coverage-check.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$repo_root"
|
||||
|
||||
echo "[coverage] dotnet test with coverage thresholds"
|
||||
dotnet test tests/CBDD.Tests/ZB.MOM.WW.CBDD.Tests.csproj \
|
||||
/p:CollectCoverage=true \
|
||||
/p:CoverletOutputFormat=cobertura \
|
||||
/p:Include="[ZB.MOM.WW.CBDD.Core*]*%2c[ZB.MOM.WW.CBDD.Bson*]*" \
|
||||
/p:Exclude="[*.Tests]*" \
|
||||
/p:Threshold=68 \
|
||||
/p:ThresholdType=line%2cbranch \
|
||||
/p:ThresholdStat=total
|
||||
|
||||
echo "[coverage] complete"
|
||||
28
scripts/fitness-check.sh
Normal file
28
scripts/fitness-check.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$repo_root"
|
||||
|
||||
echo "[fitness] dotnet restore"
|
||||
dotnet restore
|
||||
|
||||
echo "[fitness] dotnet format --verify-no-changes"
|
||||
dotnet format --verify-no-changes
|
||||
|
||||
echo "[fitness] dotnet build -t:Rebuild"
|
||||
dotnet build -t:Rebuild
|
||||
|
||||
echo "[fitness] dotnet test"
|
||||
dotnet test
|
||||
|
||||
echo "[fitness] coverage threshold check"
|
||||
bash scripts/coverage-check.sh
|
||||
|
||||
echo "[fitness] dotnet package list --deprecated"
|
||||
dotnet package list --deprecated
|
||||
|
||||
echo "[fitness] dotnet package list --include-transitive --vulnerable --format json"
|
||||
dotnet package list --include-transitive --vulnerable --format json
|
||||
|
||||
echo "[fitness] complete"
|
||||
Reference in New Issue
Block a user