Fail the build on any RuboCop offense

This commit is contained in:
Erik Michaels-Ober 2014-08-15 02:26:32 +02:00
parent 49461aea32
commit 224ad152a1
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ AllCops:
Exclude:
- 'bin/*'
- 'db/schema.rb'
- 'db/seeds.rb'
# Avoid long parameter lists
ParameterLists:

View File

@ -1,7 +1,9 @@
---
before_install: gem update bundler
before_script: bundle exec rake db:create db:schema:load
after_script: bundle exec rubocop -R
script:
- bundle exec rake
- bundle exec rubocop --rails --fail-level=refactor
bundler_args: --without assets:development:production
language: ruby
rvm: