Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Move Code Coverage to Coveralls #13

Merged
merged 5 commits into from
Mar 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .ci/buildkite/pipeline.template.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
steps:
-
name: ":muscle: Lint"
command: .ci/scripts/lint
-
name: ":fastlane: Test Mac OS X"
command: .ci/scripts/test-osx
Expand All @@ -12,7 +15,7 @@ steps:
-
type: "waiter"
-
name: ":codecov: Send Coverage"
name: ":muscle: Send Coverage"
command: .ci/scripts/send-coverage
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
4 changes: 4 additions & 0 deletions .ci/scripts/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec fastlane lint
4 changes: 3 additions & 1 deletion .ci/scripts/send-coverage
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/usr/bin/env bash
bash <(curl -s https://codecov.io/bash) -D .fastlane/xcodebuild-data
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec slather coverage --scheme "ValueCoding-iOS" --buildkite --coveralls --build-directory .ci/xcodebuild-data
9 changes: 8 additions & 1 deletion .fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
default_platform :ios
lane :lint do

swiftLint(
mode: :lint,
config_file: '.swiftlint.yml'
)
end


platform :ios do

Expand Down
6 changes: 6 additions & 0 deletions .slather.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage_service: coveralls
xcodeproj: ValueCoding.xcodeproj
build_directory: .ci/xcodebuild-data
ignore:
- Tests/*
- Supporting Files/*
3 changes: 3 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
disabled_rules:
- line_length

1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'https://rubygems.org'

gem 'slather'
gem 'scan'
gem 'fastlane', '>= 1.35'
gem 'xcpretty'
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GEM
fastlane_core (>= 0.29.1, < 1.0.0)
spaceship (>= 0.22.0, < 1.0.0)
claide (0.9.1)
clamp (0.6.5)
colored (1.2)
commander (4.3.5)
highline (~> 1.7.2)
Expand Down Expand Up @@ -143,13 +144,16 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0221)
mini_magick (4.0.4)
mini_portile2 (2.0.0)
minitest (5.8.4)
multi_json (1.11.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (3.1.0)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
os (0.9.6)
pem (1.3.0)
fastlane_core (>= 0.36.1, < 1.0.0)
Expand Down Expand Up @@ -189,6 +193,10 @@ GEM
jwt (~> 1.5)
multi_json (~> 1.10)
slack-notifier (1.5.1)
slather (2.0.1)
clamp (~> 0.6)
nokogiri (~> 1.6.3)
xcodeproj (>= 0.28.2, < 1.1.0)
snapshot (1.12.1)
fastimage (~> 1.6.3)
fastlane_core (>= 0.36.1, < 1.0.0)
Expand Down Expand Up @@ -232,6 +240,7 @@ PLATFORMS
DEPENDENCIES
fastlane (>= 1.35)
scan
slather
xcpretty

BUNDLED WITH
Expand Down
9 changes: 4 additions & 5 deletions Tests/Support.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class FooCoder: NSObject, NSCoding, CodingType {

let value: Foo

required init(_ v: Foo) {
value = v
required init(_ aValue: Foo) {
value = aValue
}

required init?(coder aDecoder: NSCoder) {
Expand All @@ -38,7 +38,6 @@ class FooCoder: NSObject, NSCoding, CodingType {

extension Foo: Equatable { }

func ==(a: Foo, b: Foo) -> Bool {
return a.bar == b.bar
func == (lhs: Foo, rhs: Foo) -> Bool {
return lhs.bar == rhs.bar
}

1 change: 0 additions & 1 deletion Tests/ValueCodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ class ValueCodingTests: XCTestCase {
XCTAssertEqual(items.encoded.values, items)
}
}

Loading