Rakefile in gitlab-4.2.0 vs Rakefile in gitlab-4.3.0
- old
+ new
@@ -1,9 +1,17 @@
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
spec.rspec_opts = ['--color', '--format d']
end
-task default: :spec
+require 'rubocop/rake_task'
+RuboCop::RakeTask.new(:rubocop) do |task|
+ task.options = ['-D', '--parallel']
+end
+
+if ENV['TRAVIS_CI_RUBOCOP']
+ task default: :rubocop
+else
+ task default: :spec
+end