Enable code coverage when testing swift package

This commit is contained in:
Wojciech Nagrodzki 2019-11-05 21:13:42 +01:00
parent deceb93eec
commit 93a14c9124
Signed by: wnagrodzki
GPG key ID: E9D0EB0302264569

View file

@ -5,7 +5,10 @@ language:
osx_image:
xcode11.2
script:
- sw_vers
- swift build
- swift test
after_success:
- bash <(curl -s https://codecov.io/bash)
- swift test --enable-code-coverage
after_success:
- 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)