diff --git a/.gitignore b/.gitignore index 2e743dd81..4b30bc8c4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ Example/WildeGuess/Pod *xcuserdata *.xcworkspace appledoc +*.gcov diff --git a/.slather.yml b/.slather.yml new file mode 100644 index 000000000..6fbce8ea7 --- /dev/null +++ b/.slather.yml @@ -0,0 +1,5 @@ +service: travis_ci +coverage_service: coveralls +xcodeproj: ComponentKit.xcodeproj +source_directory: ComponentKit + diff --git a/.travis.yml b/.travis.yml index b68eb93f1..83a3a612c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: objective-c before_install: - - gem install cocoapods + - gem install activesupport + - gem update cocoapods + - gem install slather script: ./build.sh ci @@ -9,3 +11,6 @@ script: ./build.sh ci branches: only: - master + +after_success: + - slather diff --git a/ComponentKit.xcodeproj/project.pbxproj b/ComponentKit.xcodeproj/project.pbxproj index c04a4023c..1e414ba16 100644 --- a/ComponentKit.xcodeproj/project.pbxproj +++ b/ComponentKit.xcodeproj/project.pbxproj @@ -748,6 +748,8 @@ ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; + GCC_GENERATE_TEST_COVERAGE_FILES = YES; + GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -789,6 +791,8 @@ ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_GENERATE_TEST_COVERAGE_FILES = YES; + GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; diff --git a/Podfile b/Podfile index 84c6b7d1f..8ec36845d 100644 --- a/Podfile +++ b/Podfile @@ -3,6 +3,8 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '7.0' +plugin 'slather' + link_with 'ComponentKitTests', 'ComponentKitApplicationTests', 'ComponentTextKitApplicationTests' @@ -10,11 +12,3 @@ pod 'ComponentKit', :path => '.' pod 'ComponentKitTestLib', :path => './ComponentKitTestLib' pod 'OCMock', '~> 2.2' - - - - - - - -