Skip to content

Commit 2ef40e1

Browse files
committed
Merge pull request facebookarchive#434 from dasmer/master
Generate slather/Coveralls test coverage stats
2 parents f8e43ea + d326c66 commit 2ef40e1

7 files changed

Lines changed: 22 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ docs/.sass-cache
2424
*.swp
2525

2626
*.lock
27+
28+
*.gcov

.slather.yml

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

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ before_install:
33
- brew update
44
- brew reinstall xctool
55
- gem install cocoapods -v 0.37.2
6+
- gem install slather
67
- xcrun simctl list
78
install: echo "<3"
89
env:
910
- MODE=tests
1011
- MODE=examples
1112
- MODE=life-without-cocoapods
1213
script: ./build.sh $MODE
14+
after_success:
15+
- slather
1316

1417
# whitelist
1518
branches:

AsyncDisplayKit.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,8 @@
16811681
COPY_PHASE_STRIP = NO;
16821682
GCC_C_LANGUAGE_STANDARD = gnu99;
16831683
GCC_DYNAMIC_NO_PIC = NO;
1684+
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
1685+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
16841686
GCC_OPTIMIZATION_LEVEL = 0;
16851687
GCC_PREPROCESSOR_DEFINITIONS = (
16861688
"DEBUG=1",
@@ -1718,6 +1720,8 @@
17181720
COPY_PHASE_STRIP = YES;
17191721
ENABLE_NS_ASSERTIONS = NO;
17201722
GCC_C_LANGUAGE_STANDARD = gnu99;
1723+
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
1724+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
17211725
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
17221726
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
17231727
GCC_WARN_UNDECLARED_SELECTOR = YES;

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'slather'

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
![AsyncDisplayKit](https://github.com/facebook/AsyncDisplayKit/blob/master/docs/assets/logo.png)
22

33
[![Build Status](https://travis-ci.org/facebook/AsyncDisplayKit.svg)](https://travis-ci.org/facebook/AsyncDisplayKit)
4+
[![Coverage Status](https://coveralls.io/repos/facebook/AsyncDisplayKit/badge.svg?branch=master)](https://coveralls.io/r/facebook/AsyncDisplayKit?branch=master)
45
[![Version](http://img.shields.io/cocoapods/v/AsyncDisplayKit.svg)](http://cocoapods.org/?q=AsyncDisplayKit)
56
[![Platform](http://img.shields.io/cocoapods/p/AsyncDisplayKit.svg)]()
67
[![License](http://img.shields.io/cocoapods/l/AsyncDisplayKit.svg)](https://github.com/facebook/AsyncDisplayKit/blob/master/LICENSE)

smoke-tests/Life Without CocoaPods/Life Without CocoaPods.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@
195195
ENABLE_STRICT_OBJC_MSGSEND = YES;
196196
GCC_C_LANGUAGE_STANDARD = gnu99;
197197
GCC_DYNAMIC_NO_PIC = NO;
198+
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
199+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
198200
GCC_OPTIMIZATION_LEVEL = 0;
199201
GCC_PREPROCESSOR_DEFINITIONS = (
200202
"DEBUG=1",
@@ -236,6 +238,8 @@
236238
ENABLE_NS_ASSERTIONS = NO;
237239
ENABLE_STRICT_OBJC_MSGSEND = YES;
238240
GCC_C_LANGUAGE_STANDARD = gnu99;
241+
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
242+
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
239243
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
240244
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
241245
GCC_WARN_UNDECLARED_SELECTOR = YES;

0 commit comments

Comments
 (0)