From 0ef17ace5f1cba265b66ec3121befa567525e073 Mon Sep 17 00:00:00 2001 From: Karthikeya Udupa KM Date: Mon, 23 Sep 2019 22:31:27 +0200 Subject: [PATCH] Fix coverage related issues (#105) * fix: change output folder to see if it fixes coveralls * feat: add codecov * fix: add codecov badge * Update README.md --- .travis.yml | 3 ++- .xcovignore | 4 ---- Gemfile | 1 - Gemfile.lock | 7 ------- README.md | 2 +- codecov.yml | 4 ++++ 6 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 .xcovignore create mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml index 44cca2b..a906f05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,5 @@ script: - xcodebuild -workspace SwiftyJSONAccelerator.xcworkspace -scheme "SwiftyJSONAccelerator" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO test after_success: - - xcov -w SwiftyJSONAccelerator.xcworkspace -s SwiftyJSONAccelerator -o build/xcov --coveralls_service_name travis-ci --coveralls_service_job_id $TRAVIS_JOB_ID + - xcov -w SwiftyJSONAccelerator.xcworkspace -s SwiftyJSONAccelerator xcov_output --coveralls_service_name travis-ci --coveralls_service_job_id $TRAVIS_JOB_ID + - bash <(curl -s https://codecov.io/bash) -J 'SwiftyJSONAccelerator' diff --git a/.xcovignore b/.xcovignore deleted file mode 100644 index 1e9491b..0000000 --- a/.xcovignore +++ /dev/null @@ -1,4 +0,0 @@ -# Not core code -- Pods -- SwiftyJSONAccelerator/UI -- SwiftyJSONAccelerator/Support diff --git a/Gemfile b/Gemfile index 1d63f75..b4724b2 100644 --- a/Gemfile +++ b/Gemfile @@ -3,4 +3,3 @@ source 'https://rubygems.org' gem 'cocoapods' gem 'synx' gem 'xcpretty' -gem 'xcov' diff --git a/Gemfile.lock b/Gemfile.lock index 15962ad..3fd95c4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -202,12 +202,6 @@ GEM claide (>= 1.0.2, < 2.0) colored2 (~> 3.1) nanaimo (~> 0.2.6) - xcov (1.5.1) - fastlane (>= 2.82.0, < 3.0.0) - multipart-post - slack-notifier - terminal-table - xcodeproj xcpretty (0.3.0) rouge (~> 2.0.7) xcpretty-travis-formatter (1.0.0) @@ -219,7 +213,6 @@ PLATFORMS DEPENDENCIES cocoapods synx - xcov xcpretty BUNDLED WITH diff --git a/README.md b/README.md index 053ab70..014b3a2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Build Status](https://travis-ci.org/insanoid/SwiftyJSONAccelerator.svg?branch=master)](https://travis-ci.org/insanoid/SwiftyJSONAccelerator) -[![Coverage Status](https://coveralls.io/repos/github/insanoid/SwiftyJSONAccelerator/badge.svg?branch=master)](https://coveralls.io/github/insanoid/SwiftyJSONAccelerator?branch=master) +![codecov](https://codecov.io/gh/insanoid/SwiftyJSONAccelerator/branch/master/graph/badge.svg) **Version v2.1 Released! (Swift 5)** diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..0121f92 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +ignore: + - "Pods" + - "SwiftyJSONAccelerator/UI" + - "SwiftyJSONAccelerator/Support"