Skip to content

Commit

Permalink
Coveralls placeholder support
Browse files Browse the repository at this point in the history
coveralls.io via venmo/slather, whenever Swift can produce gov -- SlatherOrg/slather#39
  • Loading branch information
alexcurylo committed Dec 26, 2014
1 parent 3193163 commit 90f7a11
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .slather.yml
@@ -0,0 +1,17 @@
#
# .slather.yml
# PoseGallery
#
# Copyright (c) 2015 Trollwerks Inc. All rights reserved.
#

# references:
# https://github.com/venmo/slather/issues/39 -- track Swift support status
# * https://github.com/venmo/slather#usage

coverage_service: coveralls
xcodeproj: PoseGallery/PoseGallery.xcodeproj
source_directory: PoseGallery/PoseGallery/source
ignore:
- PoseGallery/PoseGalleryConfig/*
- PoseGallery/PoseGalleryTests/*
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -8,10 +8,14 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
# https://github.com/venmo/slather/issues/39 -- track Swift support status
# * https://github.com/venmo/slather#usage

language: objective-c
before_script:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
#- gem install slather --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail && xcodebuild -project PoseGallery/PoseGallery.xcodeproj -scheme PoseGallery -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
- set -o pipefail && xcodebuild test -project PoseGallery/PoseGallery.xcodeproj -scheme PoseGalleryTests -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
- set -o pipefail && xcodebuild test -project PoseGallery/PoseGallery.xcodeproj -scheme PoseGalleryTests -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
#after_success: slather
14 changes: 14 additions & 0 deletions PoseGallery/PoseGallery.xcodeproj/project.pbxproj
Expand Up @@ -9,6 +9,11 @@
/* Begin PBXBuildFile section */
FA38C2BF1A38A67A00A76606 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = FA38C2BD1A38A67A00A76606 /* LaunchScreen.xib */; };
FA38C2C21A38A69900A76606 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FA38C2C01A38A69900A76606 /* Main.storyboard */; };
FA44CA161A4E110900776BD6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6E64A61A279B7700395E94 /* AppDelegate.swift */; };
FA44CA171A4E110C00776BD6 /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6E64A81A279B7700395E94 /* FirstViewController.swift */; };
FA44CA181A4E110F00776BD6 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6E64AA1A279B7700395E94 /* SecondViewController.swift */; };
FA44CA191A4E115500776BD6 /* Crashlytics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA957B5C1A4786AC0015CCC3 /* Crashlytics.framework */; };
FA44CA1A1A4E115700776BD6 /* Fabric.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA957B611A478ED60015CCC3 /* Fabric.framework */; };
FA6E64A71A279B7700395E94 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6E64A61A279B7700395E94 /* AppDelegate.swift */; };
FA6E64A91A279B7700395E94 /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6E64A81A279B7700395E94 /* FirstViewController.swift */; };
FA6E64AB1A279B7700395E94 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6E64AA1A279B7700395E94 /* SecondViewController.swift */; };
Expand All @@ -35,6 +40,7 @@
FA44C9DA1A499BC400776BD6 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = LICENSE; path = ../../LICENSE; sourceTree = "<group>"; };
FA44C9DC1A499BCE00776BD6 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../../README.md; sourceTree = "<group>"; };
FA44C9E01A4DE7E900776BD6 /* .travis.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = .travis.yml; path = ../../.travis.yml; sourceTree = "<group>"; };
FA44CA151A4E0D0600776BD6 /* .slather.yml */ = {isa = PBXFileReference; lastKnownFileType = text; name = .slather.yml; path = ../../.slather.yml; sourceTree = "<group>"; };
FA6E64A11A279B7700395E94 /* Poses Pro.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Poses Pro.app"; sourceTree = BUILT_PRODUCTS_DIR; };
FA6E64A51A279B7700395E94 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
FA6E64A61A279B7700395E94 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -67,6 +73,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
FA44CA191A4E115500776BD6 /* Crashlytics.framework in Frameworks */,
FA44CA1A1A4E115700776BD6 /* Fabric.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -175,6 +183,7 @@
FAB13EFF1A3878850053620A /* target_PoseGallery.xcconfig */,
FAB13F001A3878850053620A /* target_PoseGalleryTests.xcconfig */,
FA44C9E01A4DE7E900776BD6 /* .travis.yml */,
FA44CA151A4E0D0600776BD6 /* .slather.yml */,
FA44C9DC1A499BCE00776BD6 /* README.md */,
FA44C9DA1A499BC400776BD6 /* LICENSE */,
);
Expand Down Expand Up @@ -324,6 +333,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
FA44CA181A4E110F00776BD6 /* SecondViewController.swift in Sources */,
FA44CA171A4E110C00776BD6 /* FirstViewController.swift in Sources */,
FA44CA161A4E110900776BD6 /* AppDelegate.swift in Sources */,
FA6E64BF1A279B7800395E94 /* PoseGalleryTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -475,6 +487,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(PROJECT_DIR)/PoseGallery/libraries",
);
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
Expand All @@ -493,6 +506,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(PROJECT_DIR)/PoseGallery/libraries",
);
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Poses Pro.app/Poses Pro";
Expand Down
5 changes: 5 additions & 0 deletions PoseGallery/PoseGalleryConfig/project_PoseGallery.xcconfig
Expand Up @@ -5,6 +5,11 @@
// Copyright (c) 2015 Trollwerks Inc. All rights reserved.
//

// for Slather's coveralls.io support
//# https://github.com/venmo/slather/issues/39 -- track Swift support status
GCC_GENERATE_TEST_COVERAGE_FILES = NO
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO

// read http://danwright.info/blog/2012/10/xcode-build-configurations/ about new debug/release format to see if it's Xcode 5 friendly


Expand Down
4 changes: 2 additions & 2 deletions PoseGallery/PoseGalleryTests/source/PoseGalleryTests.swift
Expand Up @@ -21,7 +21,8 @@ class PoseGalleryTests: XCTestCase {
}

func testConfiguration() {
let delegate = UIApplication.sharedApplication().delegate
let app = UIApplication.sharedApplication()
let delegate = app.delegate
XCTAssertNotNil(delegate, "Delegate does not exist - did you set host application properly?")
}

Expand All @@ -31,5 +32,4 @@ class PoseGalleryTests: XCTestCase {
// Put the code you want to measure the time of here.
}
}

}
9 changes: 6 additions & 3 deletions README.md
@@ -1,6 +1,9 @@
[![Build Status](https://travis-ci.org/alexcurylo/swift-pose-gallery.svg?branch=master)](https://travis-ci.org/alexcurylo/swift-pose-gallery)
[![Coverage Status](https://coveralls.io/repos/alexcurylo/swift-pose-gallery/badge.png)](https://coveralls.io/r/alexcurylo/swift-pose-gallery)
[![Stories in Ready](https://badge.waffle.io/alexcurylo/swift-pose-gallery.png?label=ready&title=Ready)](https://waffle.io/alexcurylo/swift-pose-gallery)
<!---
# https://github.com/venmo/slather/issues/39 -- track Swift support status
[![Coverage Status](https://coveralls.io/repos/alexcurylo/swift-pose-gallery/badge.png)](https://coveralls.io/r/alexcurylo/swift-pose-gallery)
-->
[![Stories in Ready](https://badge.waffle.io/alexcurylo/swift-pose-gallery.png?label=ready&title=Ready)](https://waffle.io/alexcurylo/swift-pose-gallery)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/alexcurylo/swift-pose-gallery?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

swift-pose-gallery
Expand Down Expand Up @@ -37,7 +40,7 @@

## Roadmap

Feel free to open an issue if there's something in particular you'd like to see here. Or, preferably, a pull request!'
Feel free to [open an issue](https://github.com/alexcurylo/swift-pose-gallery/issues/new) if there's something in particular you'd like to see here. Or, preferably, a pull request!

## Author

Expand Down

0 comments on commit 90f7a11

Please sign in to comment.