[DRE-commits] [ruby-neovim] 02/03: setup a temporary $HOME to run tests

Jason Pleau jpleau-guest at moszumanska.debian.org
Sat Oct 14 00:03:55 UTC 2017


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

jpleau-guest pushed a commit to branch master
in repository ruby-neovim.

commit 48ca89588b29a04f846a7948292036ad9f915d39
Author: Jason Pleau <jason at jpleau.ca>
Date:   Mon Oct 9 11:12:51 2017 -0400

    setup a temporary $HOME to run tests
---
 debian/clean           | 1 +
 debian/ruby-tests.rake | 2 ++
 debian/rules           | 4 ++++
 3 files changed, 7 insertions(+)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..ca2e1ca
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+debian/fakehome/
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index cf1591e..bdfc6e8 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,5 +1,7 @@
 require 'gem2deb/rake/spectask'
 
+ENV["HOME"] = File.dirname(__FILE__) + "/fakehome"
+
 Gem2Deb::Rake::RSpecTask.new do |spec|
   spec.pattern = './spec/**/*_spec.rb'
 end
diff --git a/debian/rules b/debian/rules
index 3454d59..4ace0af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,7 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_test:
+	mkdir -p $(CURDIR)/debian/fakehome
+	dh_auto_test

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



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