-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.sh
executable file
·45 lines (34 loc) · 1.05 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -e
rm -r artifacts || true
rm -r coverage || true
dotnet build
echo "# Start Instrument"
./minicover.sh instrument --assemblies "**/net9.0/**/*.dll" --tests ""
echo "# End Instrument"
./minicover.sh reset
dotnet test --no-build
echo "# Start Uninstrument"
./minicover.sh uninstrument
echo "# End Uninstrument"
echo "# Start Report"
./minicover.sh report --threshold 34
echo "# End Report"
echo "# Start HtmlReport"
./minicover.sh htmlreport --threshold 34
echo "# End HtmlReport"
echo "# Start CoberturaReport"
./minicover.sh coberturareport
echo "# End CoberturaReport"
if [ -n "${BUILD_BUILDID}" ] && [ -n "${COVERALLS_REPO_TOKEN}" ]; then
echo "# Start Coveralls Report"
./minicover.sh coverallsreport \
--service-name "azure-devops" \
--repo-token "$COVERALLS_REPO_TOKEN" \
--commit "$BUILD_SOURCEVERSION" \
--commit-message "$BUILD_SOURCEVERSIONMESSAGE" \
--branch "$BUILD_SOURCEBRANCHNAME" \
--remote "origin" \
--remote-url "https://github.com/lucaslorentz/minicover" || echo ""
echo "# End Coveralls Report"
fi