debian-mirror-gitlab/lib/tasks/gitlab/test.rake

17 lines
337 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
namespace :gitlab do
2015-09-11 14:41:01 +05:30
desc "GitLab | Run all tests"
2014-09-02 18:07:02 +05:30
task :test do
cmds = [
2015-04-26 12:48:37 +05:30
%W(rake brakeman),
%W(rake rubocop),
2014-09-02 18:07:02 +05:30
%W(rake spinach),
%W(rake spec),
2015-09-11 14:41:01 +05:30
%W(rake teaspoon)
2014-09-02 18:07:02 +05:30
]
cmds.each do |cmd|
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
end
end
end