Skip to content

Commit 01e74e2

Browse files
authored
add gem (#20)
* add cov
1 parent fd7ac51 commit 01e74e2

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ logs/
2424
Carthage/
2525
Cartfile.resolved
2626
UserInterfaceState.xcuserstate
27+
coverage/
28+
screenshots/
29+
reports/
2730
.*.sw[a-z]
2831
.sw?
2932
*.un~

.slather.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#coverage_service: cobertura_xml
2+
coverage_service: html
3+
xcodeproj: ios-app-bootstrap.xcodeproj
4+
scheme: ios-app-bootstrap
5+
output_directory: ./coverage
6+
ignore:
7+
- Carthage/*
8+
- build/*
9+
- data/*

.travis.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
language:
2-
- swift
3-
osx_image:
4-
- xcode9
1+
osx_image: xcode9
2+
language: objective-c
3+
cache: cocoapods
54
before_install:
65
- brew update
6+
- rvm use $RVM_RUBY_VERSION
7+
install:
8+
- bundle install --without=documentation --path ../travis_bundle_dir
79
script:
810
- echo hi

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://gems.ruby-china.org'
2+
3+
gem 'slather'

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: install
2+
install:
3+
carthage update --platform iOS --verbose
4+
build: install
5+
xcodebuild -project ios-app-bootstrap.xcodeproj -sdk iphonesimulator
6+
test:
7+
echo TODO
8+
coverage:
9+
slather coverage
10+
.PHONY: test

0 commit comments

Comments
 (0)