Fail the build on any RuboCop offense
This commit is contained in:
parent
49461aea32
commit
224ad152a1
|
@ -5,6 +5,7 @@ AllCops:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'bin/*'
|
- 'bin/*'
|
||||||
- 'db/schema.rb'
|
- 'db/schema.rb'
|
||||||
|
- 'db/seeds.rb'
|
||||||
|
|
||||||
# Avoid long parameter lists
|
# Avoid long parameter lists
|
||||||
ParameterLists:
|
ParameterLists:
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
---
|
---
|
||||||
before_install: gem update bundler
|
before_install: gem update bundler
|
||||||
before_script: bundle exec rake db:create db:schema:load
|
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
|
bundler_args: --without assets:development:production
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm:
|
rvm:
|
||||||
|
|
Loading…
Reference in New Issue