This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 06c006e814141c6571821c0917dc22f154c85331
Author: Sebb <[email protected]>
AuthorDate: Mon Aug 16 16:51:04 2021 +0100

    Ensure work dirs are tidied up
---
 lib/Rakefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/lib/Rakefile b/lib/Rakefile
index 74f7b17..738d332 100644
--- a/lib/Rakefile
+++ b/lib/Rakefile
@@ -1,12 +1,13 @@
 require 'rspec/core/rake_task'
 RSpec::Core::RakeTask.new(:spec)
-task :default => :spec
-task :test => :spec
+task :default => [:spec, :end]
+task :test => [:spec, :end]
 task :spec => :work
 task :work => ['test/svn/incubator-podlings']
 
 file 'test/work/repository' do
   unless File.exist? 'test/work/repository/format'
+    mkdir 'test/work' unless Dir.exist? 'test/work'
     system 'svnadmin create test/work/repository'
   end
 end
@@ -17,3 +18,10 @@ file 'test/svn/incubator-podlings' => 'test/work/repository' 
do
     system "svn co file:///#{Dir.pwd}/work/repository svn/incubator-podlings"
   end
 end
+
+task :end => [:clobber, :clean]
+
+# cleanup
+require 'rake/clean'
+CLEAN.include 'test/work'
+CLOBBER.include 'test/svn/incubator-podlings'

Reply via email to