From b1fba6ed54997bd0a2ce29fdd523f40fecada0c3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 10 Sep 2016 20:43:42 +0100 Subject: Send coverage from Jenkins, don't run OS X Travis. OS X Travis CI is particularly error-prone, slow and unnecessary for us when we're already running (fast) OS X builds on Jenkins so use it just for Linux testing. --- Library/Homebrew/cask/Gemfile | 2 +- Library/Homebrew/cask/Gemfile.lock | 17 ++++++----------- Library/Homebrew/cask/README.md | 3 --- Library/Homebrew/cask/Rakefile | 9 +++++---- 4 files changed, 12 insertions(+), 19 deletions(-) (limited to 'Library/Homebrew/cask') diff --git a/Library/Homebrew/cask/Gemfile b/Library/Homebrew/cask/Gemfile index c164a3f67..af1c8d3bc 100644 --- a/Library/Homebrew/cask/Gemfile +++ b/Library/Homebrew/cask/Gemfile @@ -12,7 +12,7 @@ group :development do end group :test do - gem "coveralls", require: false + gem "codecov", require: false gem "minitest", "5.4.1" gem "minitest-reporters" gem "mocha", "1.1.0", require: false diff --git a/Library/Homebrew/cask/Gemfile.lock b/Library/Homebrew/cask/Gemfile.lock index b65784444..c9c2b5cca 100644 --- a/Library/Homebrew/cask/Gemfile.lock +++ b/Library/Homebrew/cask/Gemfile.lock @@ -5,13 +5,11 @@ GEM ast (2.3.0) builder (3.2.2) byebug (9.0.5) + codecov (0.1.5) + json + simplecov + url coderay (1.1.1) - coveralls (0.8.15) - json (>= 1.8, < 3) - simplecov (~> 0.12.0) - term-ansicolor (~> 1.3) - thor (~> 0.19.1) - tins (>= 1.6.0, < 2) diff-lcs (1.2.5) docile (1.1.5) json (2.0.2) @@ -71,17 +69,14 @@ GEM simplecov-html (~> 0.10.0) simplecov-html (0.10.0) slop (3.6.0) - term-ansicolor (1.3.2) - tins (~> 1.0) - thor (0.19.1) - tins (1.12.0) unicode-display_width (1.1.0) + url (0.3.2) PLATFORMS ruby DEPENDENCIES - coveralls + codecov minitest (= 5.4.1) minitest-reporters mocha (= 1.1.0) diff --git a/Library/Homebrew/cask/README.md b/Library/Homebrew/cask/README.md index 35fe201a5..1d0dc5882 100644 --- a/Library/Homebrew/cask/README.md +++ b/Library/Homebrew/cask/README.md @@ -8,9 +8,6 @@ We do this by providing a friendly Homebrew-style CLI workflow for the administr It’s implemented as a `homebrew` [external command](https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/External-Commands.md) called `cask`. -[![Build Status](https://img.shields.io/travis/caskroom/homebrew-cask/master.svg)](https://travis-ci.org/caskroom/homebrew-cask) -[![Code Climate](https://img.shields.io/codeclimate/github/caskroom/homebrew-cask.svg)](https://codeclimate.com/github/caskroom/homebrew-cask) -[![Coverage Status](https://img.shields.io/coveralls/caskroom/homebrew-cask.svg)](https://coveralls.io/r/caskroom/homebrew-cask) [![Join the chat at https://gitter.im/caskroom/homebrew-cask](https://img.shields.io/badge/gitter-join%20chat-blue.svg)](https://gitter.im/caskroom/homebrew-cask) ## Let’s try it! diff --git a/Library/Homebrew/cask/Rakefile b/Library/Homebrew/cask/Rakefile index 7a276b347..25deee407 100644 --- a/Library/Homebrew/cask/Rakefile +++ b/Library/Homebrew/cask/Rakefile @@ -23,10 +23,11 @@ namespace :test do Rake::Task[:test].invoke - if ENV["TRAVIS"] - require "coveralls/rake/task" - Coveralls::RakeTask.new - Rake::Task['coveralls:push'].invoke + if ENV["CODECOV_TOKEN"] + require "simplecov" + require "codecov" + formatter = SimpleCov::Formatter::Codecov.new + formatter.format(SimpleCov::ResultMerger.merged_result) end end end -- cgit v1.2.3