summaryrefslogtreecommitdiff
path: root/lib/tasks/gitlab/test.rake
blob: 523b0fa055b7ea4085f894c75a8f3d3daf6684e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace :gitlab do
  desc "GitLab | Run all tests"
  task :test do
    cmds = [
      %w(rake brakeman),
      %w(rake rubocop),
      %w(rake spinach),
      %w(rake spec),
      %w(rake karma)
    ]

    cmds.each do |cmd|
      system({ 'RAILS_ENV' => 'test', 'force' => 'yes' }, *cmd) || raise("#{cmd} failed!")
    end
  end
end