Merge pull request #4340 from jekyll/pr/implement-codeclimate-platform

Merge pull request 4340
This commit is contained in:
jekyllbot 2016-01-10 11:11:18 -08:00
commit 716f912ae7
4 changed files with 42 additions and 23 deletions

View File

@ -1,41 +1,55 @@
language: ruby
cache: bundler
script: script/cibuild
before_script: bundle update
language: ruby
sudo: false
rvm:
- 2.2
- 2.1
- 2.0
- ruby-head
- jruby-9.0.3.0
- ruby-head
matrix:
fast_finish: true
allow_failures:
- rvm: jruby-9.0.3.0
- rvm: ruby-head
- rvm: jruby-9.0.3.0
exclude:
- rvm: jruby-9.0.3.0
env: TEST_SUITE=cucumber
- rvm: jruby-9.0.3.0
env: TEST_SUITE=cucumber
env:
matrix:
- TEST_SUITE=test
- TEST_SUITE=cucumber
- TEST_SUITE=test
- TEST_SUITE=cucumber
branches:
only:
- master
before_script: bundle update
script: script/cibuild
- master
notifications:
irc:
on_success: change
on_failure: change
channels:
- irc.freenode.org#jekyll
template:
- "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
template: "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
channels: irc.freenode.org#jekyll
email:
recipients:
- jordon@envygeeks.io
on_success: never
on_failure: always
slack:
secure: dNdKk6nahNURIUbO3ULhA09/vTEQjK0fNbgjVjeYPEvROHgQBP1cIP3AJy8aWs8rl5Yyow4YGEilNRzKPz18AsFptVXofpwyqcBxaCfmHP809NX5PHBaadydveLm+TNVao2XeLXSWu+HUNAYO1AanCUbJSEyJTju347xCBGzESU=
secure: "\
dNdKk6nahNURIUbO3ULhA09/vTEQjK0fNbgjVjeYPEvROHgQBP1cIP3AJy8aWs8rl5Yyow4Y\
GEilNRzKPz18AsFptVXofpwyqcBxaCfmHP809NX5PHBaadydveLm+TNVao2XeLXSWu+HUNAY\
O1AanCUbJSEyJTju347xCBGzESU=\
"
addons:
code_climate:
repo_token:
secure: "\
mAuvDu+nrzB8dOaLqsublDGt423mGRyZYM3vsrXh4Tf1sT+L1PxsRzU4gLmcV27HtX2Oq9\
DA4vsRURfABU0fIhwYkQuZqEcA3d8TL36BZcGEshG6MQ2AmnYsmFiTcxqV5bmlElHEqQuT\
5SUFXLafgZPBnL0qDwujQcHukID41sE=\
"

View File

@ -17,6 +17,7 @@ group :test do
gem 'simplecov', '~> 0.9'
gem 'jekyll_test_plugin'
gem 'jekyll_test_plugin_malicious'
gem "codeclimate-test-reporter"
gem 'minitest-reporters'
gem 'minitest-profile'
gem 'rspec-mocks'

View File

@ -3,6 +3,7 @@
[![Gem Version](https://img.shields.io/gem/v/jekyll.svg)](https://rubygems.org/gems/jekyll)
[![Build Status](https://img.shields.io/travis/jekyll/jekyll/master.svg)](https://travis-ci.org/jekyll/jekyll)
[![Code Climate](https://img.shields.io/codeclimate/github/jekyll/jekyll.svg)](https://codeclimate.com/github/jekyll/jekyll)
[![Test Coverage](https://codeclimate.com/github/jekyll/jekyll/badges/coverage.svg)](https://codeclimate.com/github/jekyll/jekyll/coverage)
[![Dependency Status](https://gemnasium.com/jekyll/jekyll.svg)](https://gemnasium.com/jekyll/jekyll)
[![Security](https://hakiri.io/github/jekyll/jekyll/master.svg)](https://hakiri.io/github/jekyll/jekyll/master)

View File

@ -2,11 +2,14 @@ def jruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
end
unless ENV['TRAVIS']
require File.expand_path('../simplecov_custom_profile', __FILE__)
SimpleCov.start('gem') do
add_filter "/vendor/bundle"
if ENV["CI"]
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
else
require File.expand_path("../simplecov_custom_profile", __FILE__)
SimpleCov.start "gem" do
add_filter "/vendor/gem"
add_filter "/vendor/bundle"
add_filter ".bundle"
end
end