mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add Style enforcer (via Rubocop)
It will fail the build, but as it is currently, most of the cops are 'todos'. Great for new contributors.. :)
This commit is contained in:
@@ -2,6 +2,9 @@ language: ruby
|
||||
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
bundler: true
|
||||
|
||||
rvm:
|
||||
- 1.9.3
|
||||
- 2.0.0
|
||||
@@ -14,6 +17,10 @@ rvm:
|
||||
install:
|
||||
- bundle install --retry=3
|
||||
|
||||
script:
|
||||
- bundle exec rake
|
||||
- bundle exec rake rubocop
|
||||
|
||||
env:
|
||||
- "RAILS_VERSION=4.0"
|
||||
- "RAILS_VERSION=4.1"
|
||||
@@ -24,3 +31,4 @@ matrix:
|
||||
allow_failures:
|
||||
- rvm: ruby-head
|
||||
- env: "RAILS_VERSION=master"
|
||||
fast_finish: true
|
||||
|
||||
Reference in New Issue
Block a user