2015-11-25 14:55:57 +00:00
|
|
|
require 'bundler/setup'
|
2015-11-09 16:49:20 +00:00
|
|
|
|
2015-11-25 14:55:57 +00:00
|
|
|
require 'rubocop/rake_task'
|
2015-11-09 16:49:20 +00:00
|
|
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
|
|
|
# If you use mediawiki-vagrant, rubocop will by default use it's .rubocop.yml
|
|
|
|
# The next line makes it explicit that you want .rubocop.yml from the
|
|
|
|
# directory where `bundle exec rake` is executed:
|
2015-11-25 14:55:57 +00:00
|
|
|
task.options = ['-c', '.rubocop.yml']
|
2015-11-09 16:49:20 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
task default: [:test]
|
|
|
|
|
2015-11-25 14:55:57 +00:00
|
|
|
desc 'Run all build/tests commands (CI entry point)'
|
2015-11-09 16:49:20 +00:00
|
|
|
task test: [:rubocop]
|