From 04c24365bfc9c4718e04df482aeba0830c78ce5c Mon Sep 17 00:00:00 2001 From: Andres Ugarte Date: Thu, 19 Jan 2017 16:48:02 -0500 Subject: [PATCH] Enable code coverage --- .travis.yml | 2 +- .../xcshareddata/xcschemes/RemixerExampleTests.xcscheme | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b19f460..6900b33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,6 @@ before_install: script: - set -o pipefail - xcodebuild build -workspace RemixerExample.xcworkspace -scheme RemixerExample -sdk "iphonesimulator10.1" -destination "name=iPhone 6s,OS=10.1" ONLY_ACTIVE_ARCH=YES | xcpretty -c; - - xcodebuild test -workspace RemixerExample.xcworkspace -scheme RemixerExampleTests -sdk "iphonesimulator10.1" -destination "name=iPhone 6s,OS=10.1" ONLY_ACTIVE_ARCH=YES | xcpretty -c; + - xcodebuild test -workspace RemixerExample.xcworkspace -scheme RemixerExampleTests -sdk "iphonesimulator10.1" -destination "name=iPhone 6s,OS=10.1" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ONLY_ACTIVE_ARCH=YES | xcpretty -c; after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/examples/objc/RemixerExample.xcodeproj/xcshareddata/xcschemes/RemixerExampleTests.xcscheme b/examples/objc/RemixerExample.xcodeproj/xcshareddata/xcschemes/RemixerExampleTests.xcscheme index 47d7e0e..6058580 100644 --- a/examples/objc/RemixerExample.xcodeproj/xcshareddata/xcschemes/RemixerExampleTests.xcscheme +++ b/examples/objc/RemixerExample.xcodeproj/xcshareddata/xcschemes/RemixerExampleTests.xcscheme @@ -10,7 +10,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES">