Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test.rake « gitlab « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a83ba69bc75d13455e9f01b1f94ac00700323e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

namespace :gitlab do
  desc "GitLab | Run all tests"
  task :test do
    cmds = [
      %w(rake brakeman),
      %w(rake rubocop),
      %w(rake spec),
      %w(rake karma)
    ]

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