Commit f6f80659ec23ffc7ad4847b13ac78047862f0d91
1 parent
50670948
Exists in
spb-stable
and in
3 other branches
Override rake spec and rake spinach tasks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
4 changed files
with
28 additions
and
3 deletions
Show diff stats
.travis.yml
... | ... | @@ -21,8 +21,6 @@ services: |
21 | 21 | before_script: |
22 | 22 | - "cp config/database.yml.$DB config/database.yml" |
23 | 23 | - "cp config/gitlab.yml.example config/gitlab.yml" |
24 | - - "bundle exec rake db:setup" | |
25 | - - "bundle exec rake db:seed_fu" | |
26 | 24 | script: "bundle exec rake $TASK --trace" |
27 | 25 | notifications: |
28 | 26 | email: false | ... | ... |
lib/tasks/gitlab/test.rake
... | ... | @@ -0,0 +1,14 @@ |
1 | +Rake::Task["spec"].clear | |
2 | + | |
3 | +desc "GITLAB | Run specs" | |
4 | +task :spec do | |
5 | + cmds = [ | |
6 | + %W(rake gitlab:setup), | |
7 | + %W(rspec spec), | |
8 | + ] | |
9 | + | |
10 | + cmds.each do |cmd| | |
11 | + system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) | |
12 | + raise "#{cmd} failed!" unless $?.exitstatus.zero? | |
13 | + end | |
14 | +end | ... | ... |
... | ... | @@ -0,0 +1,14 @@ |
1 | +Rake::Task["spinach"].clear | |
2 | + | |
3 | +desc "GITLAB | Run spinach" | |
4 | +task :spinach do | |
5 | + cmds = [ | |
6 | + %W(rake gitlab:setup), | |
7 | + %W(spinach), | |
8 | + ] | |
9 | + | |
10 | + cmds.each do |cmd| | |
11 | + system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) | |
12 | + raise "#{cmd} failed!" unless $?.exitstatus.zero? | |
13 | + end | |
14 | +end | ... | ... |