Rakefile 530 B

123456789101112131415161718
  1. require 'bundler/setup'
  2. require 'rubocop/rake_task'
  3. RuboCop::RakeTask.new(:rubocop) do |task|
  4. # if you use mediawiki-vagrant, rubocop will by default use it's .rubocop.yml
  5. # the next line makes it explicit that you want .rubocop.yml from the directory
  6. # where `bundle exec rake` is executed
  7. task.options = ['-c', '.rubocop.yml']
  8. end
  9. require 'mediawiki_selenium/rake_task'
  10. MediawikiSelenium::RakeTask.new(site_tag: false)
  11. task default: [:test]
  12. desc 'Run all build/tests commands (CI entry point)'
  13. task test: [:rubocop]