From 93a14c91243c415020329d2cd17f3efe7bdcf047 Mon Sep 17 00:00:00 2001 From: Wojciech Nagrodzki <278594+wnagrodzki@users.noreply.github.com> Date: Tue, 5 Nov 2019 21:13:42 +0100 Subject: [PATCH] Enable code coverage when testing swift package --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e3d00b..6708a38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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)