mirror of
https://github.com/wnagrodzki/SwiftLogger.git
synced 2025-04-06 12:31:51 +02:00
Enable code coverage when testing swift package
This commit is contained in:
parent
deceb93eec
commit
93a14c9124
1 changed files with 6 additions and 3 deletions
|
@ -5,7 +5,10 @@ language:
|
||||||
osx_image:
|
osx_image:
|
||||||
xcode11.2
|
xcode11.2
|
||||||
script:
|
script:
|
||||||
|
- sw_vers
|
||||||
- swift build
|
- swift build
|
||||||
- swift test
|
- swift test --enable-code-coverage
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- xcrun llvm-cov report .build/debug/SwiftLoggerPackageTests.xctest/Contents/MacOS/SwiftLoggerPackageTests -instr-profile .build/debug/codecov/default.profdata
|
||||||
|
- xcrun llvm-cov export -format="lcov" .build/debug/SwiftLoggerPackageTests.xctest/Contents/MacOS/SwiftLoggerPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
|
||||||
|
- bash <(curl https://codecov.io/bash)
|
||||||
|
|
Loading…
Add table
Reference in a new issue