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 cache: bundler
script: script/cibuild
before_script: bundle update
language: ruby
sudo: false sudo: false
rvm: rvm:
- 2.2 - 2.2
- 2.1 - 2.1
- 2.0 - 2.0
- ruby-head
- jruby-9.0.3.0 - jruby-9.0.3.0
- ruby-head
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:
- rvm: ruby-head
- rvm: jruby-9.0.3.0 - rvm: jruby-9.0.3.0
- rvm: ruby-head
exclude: exclude:
- rvm: jruby-9.0.3.0 - rvm: jruby-9.0.3.0
env: TEST_SUITE=cucumber env: TEST_SUITE=cucumber
env: env:
matrix: matrix:
- TEST_SUITE=test - TEST_SUITE=test
- TEST_SUITE=cucumber - TEST_SUITE=cucumber
branches: branches:
only: only:
- master - master
before_script: bundle update
script: script/cibuild
notifications: notifications:
irc: irc:
on_success: change template: "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
on_failure: change channels: irc.freenode.org#jekyll
channels:
- irc.freenode.org#jekyll
template:
- "%{repository}#%{build_number} (%{branch}) %{message} %{build_url}"
email: email:
recipients: recipients:
- jordon@envygeeks.io - jordon@envygeeks.io
on_success: never
on_failure: always
slack: 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 'simplecov', '~> 0.9'
gem 'jekyll_test_plugin' gem 'jekyll_test_plugin'
gem 'jekyll_test_plugin_malicious' gem 'jekyll_test_plugin_malicious'
gem "codeclimate-test-reporter"
gem 'minitest-reporters' gem 'minitest-reporters'
gem 'minitest-profile' gem 'minitest-profile'
gem 'rspec-mocks' gem 'rspec-mocks'

View File

@ -3,6 +3,7 @@
[![Gem Version](https://img.shields.io/gem/v/jekyll.svg)](https://rubygems.org/gems/jekyll) [![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) [![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) [![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) [![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) [![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' defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
end end
unless ENV['TRAVIS'] if ENV["CI"]
require File.expand_path('../simplecov_custom_profile', __FILE__) require "codeclimate-test-reporter"
SimpleCov.start('gem') do CodeClimate::TestReporter.start
add_filter "/vendor/bundle" else
require File.expand_path("../simplecov_custom_profile", __FILE__)
SimpleCov.start "gem" do
add_filter "/vendor/gem" add_filter "/vendor/gem"
add_filter "/vendor/bundle"
add_filter ".bundle" add_filter ".bundle"
end end
end end