Add rubocop to rake test and rake test_ci

This commit is contained in:
Dmitriy Zaporozhets 2015-02-02 20:08:23 -08:00
parent afb8ecc3d1
commit 84a5a548a5
3 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ namespace :gitlab do
desc "GITLAB | Run all tests"
task :test do
cmds = [
%W(rake rubocop),
%W(rake spinach),
%W(rake spec),
%W(rake jasmine:ci)

2
lib/tasks/rubocop.rake Normal file
View File

@ -0,0 +1,2 @@
require 'rubocop/rake_task'
RuboCop::RakeTask.new

View File

@ -9,5 +9,5 @@ unless Rails.env.production?
require 'coveralls/rake/task'
Coveralls::RakeTask.new
desc "GITLAB | Run all tests on CI with simplecov"
task :test_ci => [:spinach, :spec, 'coveralls:push']
task :test_ci => [:rubocop, :spinach, :spec, 'coveralls:push']
end