Skip to content

Commit d45bd8c

Browse files
committed
add coveralls (test coverage) support
1 parent 3bc07a0 commit d45bd8c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.slather.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ci_service: travis_ci
2+
coverage_service: coveralls
3+
xcodeproj: SWTableViewCell.xcodeproj
4+
source_directory: SWTableViewCell

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ before_install:
55
- pod install
66

77
script:
8-
- set -o pipefail && xcodebuild test -workspace SWTableViewCell.xcworkspace -scheme SWTableViewCell -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
8+
- set -o pipefail && xcodebuild test -workspace SWTableViewCell.xcworkspace -scheme SWTableViewCell -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
9+
10+
after_success: slather

SWTableViewCell.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@
435435
"$(SDKROOT)/Developer/Library/Frameworks",
436436
"$(inherited)",
437437
);
438+
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
439+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
438440
GCC_NO_COMMON_BLOCKS = YES;
439441
GCC_PREPROCESSOR_DEFINITIONS = (
440442
"DEBUG=1",
@@ -472,6 +474,8 @@
472474
"$(SDKROOT)/Developer/Library/Frameworks",
473475
"$(inherited)",
474476
);
477+
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
478+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
475479
GCC_NO_COMMON_BLOCKS = YES;
476480
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
477481
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;

0 commit comments

Comments
 (0)