File tree Expand file tree Collapse file tree 2 files changed +28
-9
lines changed
Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,17 @@ jobs:
4949 # - Outputs results in JUnit format
5050 - name : Run tests
5151 run : >
52+ OTHER_CFLAGS="-fprofile-instr-generate -fcoverage-mapping"
53+ OTHER_CPLUSPLUSFLAGS="-fprofile-instr-generate -fcoverage-mapping"
54+ OTHER_SWIFT_FLAGS="-profile-generate -profile-coverage-mapping"
55+ LLVM_PROFILE_FILE="/tmp/coverage.profraw"
5256 CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
53- xcodebuild
54- -scheme tests
55- -destination 'platform=macOS'
57+ xcodebuild
58+ -scheme tests
59+ -destination 'platform=macOS'
5660 -resultBundlePath TestResult/
5761 -enableCodeCoverage YES
5862 -derivedDataPath "${RUNNER_TEMP}/Build/DerivedData"
59- GCC_GENERATE_TEST_COVERAGE_FILES=YES
60- GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
61- CLANG_COVERAGE_MAPPING=YES
62- CLANG_COVERAGE_MAPPING_LINKER_ARGS=YES
63- DEBUG_INFORMATION_FORMAT="dwarf-with-dsym"
64- BUILD_LIBRARY_FOR_DISTRIBUTION=NO
6563 HEADER_SEARCH_PATHS="./external/libpqxx/include/pqxx/internal ./external/libpqxx/include/ ./external/libpqxx/build/include/ ./external/"
6664 LIBRARY_SEARCH_PATHS="./external/libpqxx/src/ ./external/libpqxx/build/src/"
6765 OTHER_LDFLAGS="-L./external/libpqxx/build/src -lpqxx -lpq -L/opt/homebrew/Cellar/pkgconf/2.3.0_1/lib -L/opt/homebrew/Cellar/pkgconf/2.3.0_1/lib/pkgconfig -L/opt/homebrew/Cellar/postgresql@14/14.15/lib/postgresql@14 -L/opt/homebrew/Cellar/postgresql@14/14.15/lib/postgresql@14/pgxs -L/opt/homebrew/Cellar/postgresql@14/14.15/lib/postgresql@14/pkgconfig"
Original file line number Diff line number Diff line change 1+ rm -rf ./TestResult;
2+ rm -rf ./TestResult.xcresult;
3+ rm -rf ./sonarqube-generic-coverage.xml
4+
5+ OTHER_CFLAGS=" -fprofile-instr-generate -fcoverage-mapping" \
6+ OTHER_CPLUSPLUSFLAGS=" -fprofile-instr-generate -fcoverage-mapping" \
7+ OTHER_SWIFT_FLAGS=" -profile-generate -profile-coverage-mapping" \
8+ LLVM_PROFILE_FILE=" /tmp/coverage.profraw" \
9+ CODE_SIGN_IDENTITY=" " CODE_SIGNING_REQUIRED=NO \
10+ xcodebuild \
11+ -scheme tests \
12+ -destination ' platform=macOS' \
13+ -resultBundlePath TestResult/ \
14+ -enableCodeCoverage YES \
15+ -derivedDataPath " /tmp" \
16+ HEADER_SEARCH_PATHS=" ./external/libpqxx/include/pqxx/internal ./external/libpqxx/include/ ./external/libpqxx/build/include/ ./external/" \
17+ LIBRARY_SEARCH_PATHS=" ./external/libpqxx/src/ ./external/libpqxx/build/src/" \
18+ OTHER_LDFLAGS=" -L./external/libpqxx/build/src -lpqxx -lpq -L/opt/homebrew/Cellar/pkgconf/2.3.0_1/lib -L/opt/homebrew/Cellar/pkgconf/2.3.0_1/lib/pkgconfig -L/opt/homebrew/Cellar/postgresql@14/14.15/lib/postgresql@14 -L/opt/homebrew/Cellar/postgresql@14/14.15/lib/postgresql@14/pgxs -L/opt/homebrew/Cellar/postgresql@14/14.15/lib/postgresql@14/pkgconfig" \
19+ clean build test
20+
21+ bash ./.github/workflows/xccov-to-sonarqube-generic.sh * .xcresult/ > sonarqube-generic-coverage.xml
You can’t perform that action at this time.
0 commit comments