Skip to content

Commit

Permalink
Merge pull request #6 from spotify/coverage
Browse files Browse the repository at this point in the history
Add slather / coveralls
  • Loading branch information
8W9aG committed Dec 22, 2015
2 parents bc4f2a9 + a8135ba commit 0a1e3e5
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/
slather-report/
2 changes: 2 additions & 0 deletions .slather.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_service: coveralls
xcodeproj: SPTDataLoader.xcodeproj
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
osx_image: xcode7.2
language: objective-c
install: bundle install --without=documentation
script:
- xctool -project SPTDataLoader.xcodeproj -scheme SPTDataLoader -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
- xctool test -project SPTDataLoader.xcodeproj -scheme SPTDataLoader -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
- xcodebuild build test -project SPTDataLoader.xcodeproj -scheme SPTDataLoader -sdk iphonesimulator ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES
after_success: ./slather.sh
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'slather',
:git => "https://github.com/viteinfinite/slather",
:branch => "feature-profdata"
44 changes: 44 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
GIT
remote: https://github.com/viteinfinite/slather
revision: 19cd9648ebccf351b79e8513136c091c98650e9e
branch: feature-profdata
specs:
slather (1.8.2)
clamp (~> 0.6)
nokogiri (~> 1.6.3)
xcodeproj (~> 0.28.2)

GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.5)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (0.9.1)
clamp (0.6.5)
colored (1.2)
i18n (0.7.0)
json (1.8.3)
mini_portile2 (2.0.0)
minitest (5.8.3)
nokogiri (1.6.7.1)
mini_portile2 (~> 2.0.0.rc2)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
xcodeproj (0.28.2)
activesupport (>= 3)
claide (~> 0.9.1)
colored (~> 1.2)

PLATFORMS
ruby

DEPENDENCIES
slather!

BUNDLED WITH
1.10.6
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# SPTDataLoader

[![Coverage Status](https://coveralls.io/repos/spotify/SPTDataLoader/badge.svg?branch=master&service=github)](https://coveralls.io/github/spotify/SPTDataLoader?branch=master)

## DESCRIPTION
Authentication and back-off logic is a pain, let's do it once and forget about it! This is a library that allows you to centralise this logic and forget about the ugly parts of making HTTP requests.

Expand Down
2 changes: 2 additions & 0 deletions SPTDataLoader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down Expand Up @@ -494,6 +495,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
11 changes: 11 additions & 0 deletions slather.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set -euo pipefail

bundle exec slather coverage \
--input-format profdata \
--cobertura-xml \
--ignore "../**/*/Xcode*" \
--output-directory slather-report \
--scheme SPTDataLoader \
SPTDataLoader.xcodeproj

bundle exec slather

0 comments on commit 0a1e3e5

Please sign in to comment.