From f9750692a6aa8df94891bcd2692fc8633431c118 Mon Sep 17 00:00:00 2001 From: seanoshea Date: Mon, 1 Aug 2016 17:25:18 -0400 Subject: [PATCH] Per issue #10 - Trying to enable code coverage for the project. Per #10 - Trying to trigger a build. Per issue #10 - Actually sending to codecov. Per issue #10 - Trying to force a build. Per issue #10 - Not counting anything in tests or examples. --- .travis.yml | 5 +++-- README.md | 3 ++- codecov.yml | 4 ++++ .../project.pbxproj | 3 +++ .../xcschemes/ScrollViewDelegateMultiplexerExample.xcscheme | 3 ++- 5 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml index 93b928d..5478f4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,5 +21,6 @@ before_install: - git submodule update script: - set -o pipefail - - xcodebuild -workspace examples/app/ScrollViewDelegateMultiplexerExample.xcworkspace -scheme ScrollViewDelegateMultiplexerExample -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build test | xcpretty -c; - + - xcodebuild -workspace examples/app/ScrollViewDelegateMultiplexerExample.xcworkspace -scheme ScrollViewDelegateMultiplexerExample -sdk "$SDK" -destination "$DESTINATION" -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ONLY_ACTIVE_ARCH=NO build test | xcpretty -c; +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 55d51ca..7ec6006 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # MDFScrollViewDelegateMultiplexer [![Build Status](https://travis-ci.org/material-foundation/material-scrollview-delegate-multiplexer-ios.svg?branch=master)](https://travis-ci.org/material-foundation/material-scrollview-delegate-multiplexer-ios) +[![Code Coverage](http://codecov.io/github/material-foundation/material-scrollview-delegate-multiplexer-ios/coverage.svg?branch=master)](http://codecov.io/github/material-foundation/material-scrollview-delegate-multiplexer-ios?branch=master) This class acts as a proxy object for `UIScrollViewDelegate` events and forwards all received -events to an ordered list of registered observers. +events to an ordered list of registered observers. ## Installation diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..e0d349f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +coverage: + ignore: + - tests/* + - examples/* diff --git a/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/project.pbxproj b/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/project.pbxproj index d39377c..075f743 100644 --- a/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/project.pbxproj +++ b/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/project.pbxproj @@ -473,6 +473,8 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + GCC_GENERATE_TEST_COVERAGE_FILES = YES; + GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES; INFOPLIST_FILE = ScrollViewDelegateMultiplexerExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.ScrollViewDelegateMultiplexerExample; @@ -484,6 +486,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_CODE_COVERAGE = NO; INFOPLIST_FILE = ScrollViewDelegateMultiplexerExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.ScrollViewDelegateMultiplexerExample; diff --git a/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/xcshareddata/xcschemes/ScrollViewDelegateMultiplexerExample.xcscheme b/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/xcshareddata/xcschemes/ScrollViewDelegateMultiplexerExample.xcscheme index 3d6692e..302fe9c 100644 --- a/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/xcshareddata/xcschemes/ScrollViewDelegateMultiplexerExample.xcscheme +++ b/examples/app/ScrollViewDelegateMultiplexerExample.xcodeproj/xcshareddata/xcschemes/ScrollViewDelegateMultiplexerExample.xcscheme @@ -26,7 +26,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES">