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

spec.rake « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90a1809914b5a0afd43720450c54c9bb1342e038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Rake::Task["spec"].clear if Rake::Task.task_defined?('spec')

desc "GITLAB | Run specs"
task :spec do
  cmds = [
    %W(rake gitlab:setup),
    %W(rspec spec),
  ]

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