-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e8a773
commit 0a08a54
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf ../release | ||
mkdir ../release | ||
|
||
dotnet --info > ../release/dotnet_info.txt | ||
|
||
dotnet restore ../ | ||
dotnet build ../ --configuration Release --no-restore /p:ContinuousIntegrationBuild=true | ||
|
||
if [[ $1 = "code_coverage" ]]; then | ||
dotnet test ../ --configuration Release --no-build --verbosity normal --framework net8.0 --collect:"XPlat Code Coverage;Format=lcov" | ||
find ../tests/Fastenshtein.Tests/TestResults/ -name "coverage.info" -type f -exec mv {} ../coverage.net8.info \; | ||
find ../tests/Fastenshtein.Tests/TestResults/ -name "coverage.info" -type f -exec mv {} ../release/coverage.net8.info \; | ||
|
||
dotnet test ../ --configuration Release --no-build --verbosity normal --framework net48 --collect:"XPlat Code Coverage;Format=lcov" | ||
find ../tests/Fastenshtein.Tests/TestResults/ -name "coverage.info" -type f -exec mv {} ../coverage.net48.info \; | ||
|
||
ls | ||
ls .. | ||
find ../tests/Fastenshtein.Tests/TestResults/ -name "coverage.info" -type f -exec mv {} ../release/coverage.net48.info \; | ||
else | ||
dotnet test ../ --configuration Release --no-build --verbosity normal | ||
fi | ||
|
||
dotnet pack ../ --configuration Release --no-build | ||
dotnet pack ../ --configuration Release --no-build | ||
|
||
find ../src/Fastenshtein/bin/Release -name "Fastenshtein.*.nupkg" -exec cp "{}" ../release/Fastenshtein.nupkg \; | ||
find ../src/Fastenshtein/bin/Release -name "Fastenshtein.*.snupkg" -exec cp "{}" ../release/Fastenshtein.snupkg \; |