Clean up the public/uploads folder after ci runs.
This commit is contained in:
parent
a572637e4c
commit
84d596ee47
1 changed files with 4 additions and 0 deletions
|
|
@ -8,7 +8,11 @@ namespace :cruise do
|
|||
exit_status = $?.exitstatus
|
||||
puts "Stopping virtual display..."
|
||||
`sh -e /etc/init.d/xvfb stop`
|
||||
puts "Cleaning up..."
|
||||
FileUtils.rm_rf("#{Rails.root}/public/uploads/images")
|
||||
FileUtils.rm_rf("#{Rails.root}/public/uploads/tmp")
|
||||
raise "tests failed!" unless exit_status == 0
|
||||
puts "All tests passed!"
|
||||
end
|
||||
|
||||
task :migrate do
|
||||
|
|
|
|||
Loading…
Reference in a new issue