chore: update project files and configurations for improved compatibility and performance

This commit is contained in:
Miha Kralj
2025-12-09 16:04:19 -05:00
parent c802a9ea80
commit 8959d9584d
10 changed files with 65 additions and 74 deletions
+10 -15
View File
@@ -17,32 +17,27 @@ fi
# Coverage output directory for Qodana
COVERAGE_DIR=".qodana/code-coverage"
echo "==> Building solution..."
dotnet build --no-incremental
echo "==> Running tests with coverage..."
mkdir -p "$COVERAGE_DIR"
dotnet test --no-build --collect:"XPlat Code Coverage" \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
# Copy coverage to Qodana directory
find . -name "coverage.info" -exec cp {} "$COVERAGE_DIR/" \;
# Run SonarCloud
echo "==> Starting SonarScanner analysis..."
# Re-run tests with OpenCover format for SonarCloud
dotnet test --no-build --collect:"XPlat Code Coverage" \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
dotnet sonarscanner begin \
/o:"mihakralj-quantalib" \
/k:"mihakralj_QuanTAlib" \
/d:sonar.token="$SONAR_TOKEN" \
/d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml"
echo "==> Building solution..."
dotnet build --no-incremental
echo "==> Running tests with coverage..."
mkdir -p "$COVERAGE_DIR"
# Run tests with both formats if possible, or sequentially
dotnet test --no-build --collect:"XPlat Code Coverage" \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov,opencover
# Copy coverage to Qodana directory
find . -name "coverage.info" -exec cp {} "$COVERAGE_DIR/" \;
dotnet sonarscanner end /d:sonar.token="$SONAR_TOKEN"
echo "==> SonarCloud: https://sonarcloud.io/project/overview?id=mihakralj_QuanTAlib"