1 Star 0 Fork 0

吉良吉影/MoreLINQ

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
Atif Aziz 提交于 2024-12-28 21:26 +08:00 . Update .NET SDK to 9, including dependencies
#!/usr/bin/env bash
set -eo pipefail
cd "$(dirname "$0")"
if [[ "${SKIP_TEST_BUILD:=false}" == "false" ]]; then
./build.sh $c
fi
if [[ -d "MoreLinq.Test/TestResults" ]]; then
rm -rf MoreLinq.Test/TestResults
fi
if [[ -z "$1" ]]; then
configs="Debug Release"
else
configs="$1"
fi
for f in net6.0 net8.0 net9.0; do
for c in $configs; do
dotnet test --no-build -c $c -f $f --settings MoreLinq.Test/coverlet.runsettings MoreLinq.Test
TEST_RESULTS_DIR="$(ls -dc MoreLinq.Test/TestResults/* | head -1)"
cp "$TEST_RESULTS_DIR/coverage.opencover.xml" "MoreLinq.Test/TestResults/coverage-$f-$c.opencover.xml"
done
done
dotnet reportgenerator -reports:MoreLinq.Test/TestResults/coverage-*.opencover.xml \
-reporttypes:Html\;TextSummary \
-targetdir:MoreLinq.Test/TestResults/reports
cat MoreLinq.Test/TestResults/reports/Summary.txt
for f in net8.0 net9.0; do
dotnet publish -f $f MoreLinq.Test.Aot
"$(find MoreLinq.Test.Aot -type d -name publish | grep -F $f)/MoreLinq.Test.Aot"
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hopefsharp/MoreLINQ.git
git@gitee.com:hopefsharp/MoreLINQ.git
hopefsharp
MoreLINQ
MoreLINQ
master

搜索帮助