Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from sue445/feature/ci
Browse files Browse the repository at this point in the history
Setup CI
  • Loading branch information
sue445 committed Nov 2, 2016
2 parents 52eebd7 + f71ab9b commit 63dc49f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: D4zrX3740AuzEhmB3Xh5si0GkEjp00NLP
26 changes: 24 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
sudo: false
language: ruby
rvm:
- 2.3.1
before_install: gem install bundler -v 1.12.5
- 2.2
- 2.3.1
- ruby-head
before_install:
- gem update --system
- gem install bundler -v 1.12.5
bundler_args: "--jobs=2"
cache: bundler
before_script:
- export CODECLIMATE_REPO_TOKEN=6e639271e2b71c8d880f7449a0d56a7029f75cf9f468abcae63b66f48e61d249
- export CI=true
script:
- bundle exec rspec
- bundle exec rubocop
branches:
only:
- master
notifications:
email: false
slack:
secure: isiRJb/vgIL7NwiunQGsZMOdOPiKGPRl6KqC65RkYKc89bhXnDf/70oZsLYCgRrsM5ClEL/QnNivvohdjWwvxPQgNbHmoXh5egZ2/19nh0tb0x7DWyQ3uIslUWRBsu9GAugKK0JSUiBi5iK3NqipI/GQgGtN+gxD98IXMqkD29V+YO3Ysfa9vKEnS1ijy8KVhMOASj+9+5HEOXOPVWIvZ+Gjgx9D/MOaz/ALJ6xUuVAesc2XqSrYqOqseKArRq4qeslqb3RE4kWUmw0QGJG77hryyVw2oI5sXcfKOzeqduV/GzOq7eP1A0GDd7DgIkWnW0T+hiCG789fUA91g09F9ln9IdDBnJ/1M4UKf0Nj+AmWwGUG2JmRUsjVns5buyCduKcxkCr82NxDH27O/jU+KvXHTjjWByd7ABuIaWHs5Y9SkP7JMeyiqzIanhnuo0wgh/O1p9uEjpF0vS70qAkib9ph9HC6ZbfIp8lAoUNiQkrqlrbB624d8QVgqX9X9vTFVBmeRUVEWq3cBg99D+Ryemhzcfakq1PesoKuzsemV2E0mhxW6hOdZKAiIucvY8vEIPkpTKaZ6hjQBRoGKyMPRbwhVkRo3J+sHrGweWTjFT53C1lVDgC2s7ZYfrMOXi/Jf8AGJqCl0aTzIsn29IUwhDJR7sNixufLkU4ioSra8t0=
matrix:
allow_failures:
- rvm: ruby-head
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Code style checking for Gemfile, as an extension to [Rubocop](https://github.com/bbatsov/rubocop)

[![Gem Version](https://badge.fury.io/rb/rubocop-gemfile.svg)](https://badge.fury.io/rb/rubocop-gemfile)
[![Build Status](https://travis-ci.org/sue445/rubocop-gemfile.svg?branch=master)](https://travis-ci.org/sue445/rubocop-gemfile)
[![Code Climate](https://codeclimate.com/github/sue445/rubocop-gemfile/badges/gpa.svg)](https://codeclimate.com/github/sue445/rubocop-gemfile)
[![Coverage Status](https://coveralls.io/repos/github/sue445/rubocop-gemfile/badge.svg?branch=master)](https://coveralls.io/github/sue445/rubocop-gemfile?branch=master)
[![Dependency Status](https://gemnasium.com/badges/github.com/sue445/rubocop-gemfile.svg)](https://gemnasium.com/github.com/sue445/rubocop-gemfile)

## Installation

Expand Down
4 changes: 3 additions & 1 deletion rubocop-gemfile.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|

spec.summary = 'Code style checking for Gemfile'
spec.description = 'Code style checking for Gemfile'
spec.homepage = "https://github.com/sue445/rubocop-gemfile"
spec.homepage = 'https://github.com/sue445/rubocop-gemfile'
spec.license = 'MIT'

spec.files =
Expand All @@ -25,6 +25,8 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rubocop', '>= 0.35.0'

spec.add_development_dependency 'bundler', '~> 1.12'
spec.add_development_dependency 'codeclimate-test-reporter'
spec.add_development_dependency 'coveralls'
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.5.0'
Expand Down
20 changes: 20 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# frozen_string_literal: true

if ENV['CI']
require 'simplecov'
require 'coveralls'
require 'codeclimate-test-reporter'

SimpleCov.formatter =
SimpleCov::Formatter::MultiFormatter.new(
[
CodeClimate::TestReporter::Formatter,
Coveralls::SimpleCov::Formatter
]
)
SimpleCov.start do
%w(spec).each do |ignore_path|
add_filter(ignore_path)
end
end
end

require 'rubocop'

require 'rubocop/rspec/support'
Expand Down

0 comments on commit 63dc49f

Please sign in to comment.