Skip to content

Commit

Permalink
Merge pull request #266 from jgavris/coveralls
Browse files Browse the repository at this point in the history
Add Coveralls for test coverage.
  • Loading branch information
gnachman committed Feb 2, 2016
2 parents 70038e7 + 0100298 commit 90507ce
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .slather.yml
@@ -0,0 +1,8 @@
coverage_service: coveralls
ci_service: travis_ci
xcodeproj: iTerm2.xcodeproj
ignore:
- "../**/Developer/*"
- "ThirdParty/*"
- "iTerm2XCTests/*"
- "Pods/*"
3 changes: 3 additions & 0 deletions .travis.yml
@@ -1,3 +1,6 @@
before_install: ./ci/before_install.sh
bundler_args: --without documentation --without development --deployment --jobs=3 --retry=3
osx_image: xcode7.2
language: objective-c
script: ./ci/script.sh
after_success: ./ci/after_success.sh
3 changes: 3 additions & 0 deletions Gemfile
@@ -1,5 +1,8 @@
source 'https://rubygems.org'

gem 'cocoapods'
gem 'slather',
:git => "https://github.com/venmo/slather",
:branch => "master"
gem 'xcpretty'
gem 'xcpretty-travis-formatter'
15 changes: 15 additions & 0 deletions Gemfile.lock
@@ -1,3 +1,13 @@
GIT
remote: https://github.com/venmo/slather
revision: 7a0921b2470b32839e1e2085305d7088b977f6c1
branch: master
specs:
slather (1.8.3)
clamp (~> 0.6)
nokogiri (~> 1.6.3)
xcodeproj (~> 0.28.2)

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -8,6 +18,7 @@ GEM
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (0.9.1)
clamp (0.6.5)
cocoapods (0.39.0)
activesupport (>= 4.0.2)
claide (~> 0.9.1)
Expand Down Expand Up @@ -41,10 +52,13 @@ GEM
fuzzy_match (2.0.4)
i18n (0.7.0)
json (1.8.3)
mini_portile2 (2.0.0)
minitest (5.8.3)
molinillo (0.4.1)
nap (1.0.0)
netrc (0.7.8)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
rouge (1.10.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
Expand All @@ -63,6 +77,7 @@ PLATFORMS

DEPENDENCIES
cocoapods
slather!
xcpretty
xcpretty-travis-formatter

Expand Down
3 changes: 3 additions & 0 deletions README.md
@@ -1,4 +1,7 @@
This site hosts code for <a href="https://iterm2.com">iTerm2</a>.

[![Build Status](https://travis-ci.org/gnachman/iTerm2.svg?branch=master)](https://travis-ci.org/gnachman/iTerm2)
[![Coverage Status](https://coveralls.io/repos/github/gnachman/iTerm2/badge.svg?branch=master)](https://coveralls.io/github/gnachman/iTerm2?branch=master)

<a href="https://iterm2.com/bugs">File a bug report here!</a> Issues are on <a href="https://gitlab.com/gnachman/iterm2/issues">Gitlab</a> because Github doesn't support issue attachments.

8 changes: 8 additions & 0 deletions ci/after_success.sh
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail

bundle exec slather coverage \
--input-format profdata \
--scheme iTerm2 \
iTerm2.xcodeproj
3 changes: 3 additions & 0 deletions ci/before_install.sh
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bundle config build.nokogiri --use-system-libraries
4 changes: 4 additions & 0 deletions iTerm2.xcodeproj/project.pbxproj
Expand Up @@ -6324,6 +6324,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = iTerm2;
CLANG_ENABLE_CODE_COVERAGE = YES;
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_VERSION = "";
Expand Down Expand Up @@ -7635,6 +7636,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = iTerm2;
CLANG_ENABLE_CODE_COVERAGE = YES;
ENABLE_TESTABILITY = YES;
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)";
GCC_C_LANGUAGE_STANDARD = c99;
Expand All @@ -7659,6 +7661,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = iTerm2;
CLANG_ENABLE_CODE_COVERAGE = YES;
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_VERSION = "";
Expand All @@ -7675,6 +7678,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = iTerm2;
CLANG_ENABLE_CODE_COVERAGE = YES;
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)";
GCC_VERSION = "";
GCC_WARN_PROTOTYPE_CONVERSION = NO;
Expand Down
3 changes: 2 additions & 1 deletion iTerm2.xcodeproj/xcshareddata/xcschemes/iTerm2.xcscheme
Expand Up @@ -40,7 +40,8 @@
buildConfiguration = "Development"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down

0 comments on commit 90507ce

Please sign in to comment.