Fail the build on any RuboCop offense
This commit is contained in:
parent
49461aea32
commit
224ad152a1
|
@ -5,6 +5,7 @@ AllCops:
|
|||
Exclude:
|
||||
- 'bin/*'
|
||||
- 'db/schema.rb'
|
||||
- 'db/seeds.rb'
|
||||
|
||||
# Avoid long parameter lists
|
||||
ParameterLists:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue