[DRE-commits] [ruby-chefspec] 04/05: Run cucumber tests during build
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Sat Aug 15 07:22:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch master
in repository ruby-chefspec.
commit 279ef1a72cb06d8405039c123db33c5cc08806f4
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Fri Aug 14 20:39:31 2015 +0300
Run cucumber tests during build
---
debian/control | 4 +++-
...Remove-Gemfile-to-prevent-its-cucumber-usage.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
debian/ruby-tests.rake | 19 ++++++++++++++++---
4 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index a285cc3..ea37f70 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,9 @@ Build-Depends: chef (>= 11.14),
gem2deb,
rake,
ruby-fauxhai (>= 2.0),
- ruby-rspec (>= 3.0)
+ ruby-rspec (>= 3.0),
+ ruby-aruba (>= 0.5),
+ cucumber
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-chefspec.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-chefspec.git
diff --git a/debian/patches/0001-Remove-Gemfile-to-prevent-its-cucumber-usage.patch b/debian/patches/0001-Remove-Gemfile-to-prevent-its-cucumber-usage.patch
new file mode 100644
index 0000000..67536b2
--- /dev/null
+++ b/debian/patches/0001-Remove-Gemfile-to-prevent-its-cucumber-usage.patch
@@ -0,0 +1,17 @@
+From: Hleb Valoshka <375gnu at gmail.com>
+Date: Fri, 14 Aug 2015 20:44:36 +0300
+Subject: Remove Gemfile to prevent its cucumber usage
+
+---
+ Gemfile | 2 --
+ 1 file changed, 2 deletions(-)
+ delete mode 100644 Gemfile
+
+diff --git a/Gemfile b/Gemfile
+deleted file mode 100644
+index 851fabc..0000000
+--- a/Gemfile
++++ /dev/null
+@@ -1,2 +0,0 @@
+-source 'https://rubygems.org'
+-gemspec
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e5a8626
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Remove-Gemfile-to-prevent-its-cucumber-usage.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index cf1591e..47006f9 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,5 +1,18 @@
-require 'gem2deb/rake/spectask'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = './spec/**/*_spec.rb'
+end
-Gem2Deb::Rake::RSpecTask.new do |spec|
- spec.pattern = './spec/**/*_spec.rb'
+require 'cucumber'
+require 'cucumber/rake/task'
+require 'chef/version'
+Cucumber::Rake::Task.new(:features) do |t|
+ t.cucumber_opts = %W{
+ features
+ -x
+ --format progress
+ --tags ~@not_chef_#{Chef::VERSION.gsub('.', '_')}
+ }
end
+
+task :default => [:spec, :features]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-chefspec.git
More information about the Pkg-ruby-extras-commits
mailing list