[DRE-commits] [schleuder] 04/07: debian/ruby-tests.rake: Run all specs; remove test db

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Thu Jan 12 19:01:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

georg-alioth-guest pushed a commit to branch master
in repository schleuder.

commit 9421873ab6fc78a3abc00048d4a2a7ac89c1c17c
Author: Georg Faerber <georg at riseup.net>
Date:   Wed Jan 11 20:46:46 2017 +0100

    debian/ruby-tests.rake: Run all specs; remove test db
    
    * Cover all upstream tests
    * Remove test db, to make the build reproducible
---
 debian/ruby-tests.rake | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 5388ae0..b581d88 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -12,8 +12,14 @@ end
 
 task :run_tests do
   Gem2Deb::Rake::RSpecTask.new do |spec|
-    spec.pattern = '../spec/schleuder/*_spec.rb'
+    spec.pattern = ['../spec/*/*_spec.rb', '../spec/*/*/*.spec.rb']
   end
 end
 
+task :cleanup do
+  # Remove database to make the build reproducible
+  `rm db/test.sqlite3 >/dev/null 2>&1 || true`
+  `rm /usr/lib/ruby/vendor_ruby/schleuder/db/test.sqlite3 >/dev/null 2>&1 || true`
+end
+
 task :default => [:setup, :run_tests]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/schleuder.git



More information about the Pkg-ruby-extras-commits mailing list