1
0
Fork 0

Improve Rake tasks

This commit is contained in:
Alex Kotov 2018-12-13 07:28:32 +05:00
parent 5b3927c26a
commit 54ac4c995f
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 8 additions and 5 deletions

View file

@ -45,7 +45,7 @@ install:
before_script:
- psql -U postgres -c "CREATE DATABASE partynest_test;"
script: bundle exec rake
script: bundle exec rake all
after_script:
- bundle exec rake coveralls:push

View file

@ -4,11 +4,14 @@ require_relative 'config/application'
Rails.application.load_tasks
desc 'Run all checks (test, lint...)'
task default: :lint
desc 'Run all checks'
task all: %i[default extra]
desc 'Run all code analysis tools (RuboCop...)'
task lint: %i[rubocop bundler:audit brakeman]
desc 'Run common checks (test, lint...)'
task default: :rubocop
desc 'Run additional checks'
task extra: %i[bundler:audit brakeman]
desc 'Fix code style (rubocop --auto-correct)'
task fix: 'rubocop:auto_correct'