[DRE-commits] [ruby-handlebars-assets] 01/01: run only autopkgtest
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Mon Mar 7 13:39:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-handlebars-assets.
commit a805c7bc277c4e75618cdae45812d7747cc2b854
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Mon Mar 7 19:05:54 2016 +0530
run only autopkgtest
---
debian/ruby-tests.rake | 9 ++++++++-
debian/tests/control | 7 +++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 024e4ab..a7cf8c0 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -7,4 +7,11 @@ Rake::TestTask.new(:test) do |test|
test.warning = false
end
-task :default => [:test]
+# Run only autopkgtests
+if ENV['ADTTMP'].nil?
+ task :default do
+ puts 'skipping tests (run only as autopkgtest)'
+ end
+else
+ task :default => [:test]
+end
diff --git a/debian/tests/control b/debian/tests/control
index 3bcadb9..98a0eec 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,6 @@
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
+
Tests: smoke-test
-Depends: @, rails, ruby-coffee-script, ruby-jbuilder, ruby-sqlite3,
- ruby-sass-rails
+Depends: @, ruby-rails, ruby-coffee-script, ruby-sqlite3
+Restrictions: allow-stderr, needs-recommends
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-handlebars-assets.git
More information about the Pkg-ruby-extras-commits
mailing list