BigW Consortium Gitlab

test.rake 337 Bytes
Newer Older
Dmitriy Zaporozhets committed
1
namespace :gitlab do
2
  desc "GitLab | Run all tests"
3
  task :test do
4
    cmds = [
5
      %W(rake brakeman),
6
      %W(rake rubocop),
7 8
      %W(rake spinach),
      %W(rake spec),
9
      %W(rake teaspoon)
10 11 12
    ]

    cmds.each do |cmd|
Dmitriy Zaporozhets committed
13
      system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
14
    end
15
  end
16
end