[DRE-commits] [ruby-fog-atmos] 04/04: Adding patches and tests

Balasankar C balasankarc-guest at moszumanska.debian.org
Thu Feb 5 12:53:55 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-fog-atmos.

commit 9626fc02f064ebaca800d0f1d9df4e05fedbae88
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Feb 5 14:30:17 2015 +0530

    Adding patches and tests
---
 debian/patches/coveralls | 38 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series    |  1 +
 debian/ruby-tests.rake   | 25 +++++++++++++++++++++++++
 3 files changed, 64 insertions(+)

diff --git a/debian/patches/coveralls b/debian/patches/coveralls
new file mode 100644
index 0000000..f0047ec
--- /dev/null
+++ b/debian/patches/coveralls
@@ -0,0 +1,38 @@
+Description: Remove coveralls
+ Remove the unnecessary coveralls dependency
+Author: Balasankar C <balasankarc at autistici.org>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tests/helper.rb
++++ b/tests/helper.rb
+@@ -1,14 +1,14 @@
+ require 'excon'
+ 
+-if ENV['COVERAGE']
+-  require 'coveralls'
+-  require 'simplecov'
+-
+-  SimpleCov.start do
+-    add_filter '/spec/'
+-    add_filter '/test/'
+-  end
+-end
++#if ENV['COVERAGE']
++  #require 'coveralls'
++  #require 'simplecov'
++
++  #SimpleCov.start do
++    #add_filter '/spec/'
++    #add_filter '/test/'
++  #end
++#end
+ 
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/fog/atmos'))
+ 
+@@ -33,4 +33,4 @@
+ 
+ def array_differences(array_a, array_b)
+   (array_a - array_b) | (array_b - array_a)
+-end
+\ No newline at end of file
++end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..71094bb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+coveralls
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..576a04a
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,25 @@
+
+require 'gem2deb/rake/testtask'
+
+Rake::TestTask.new do |t|
+  t.libs.push %w(spec)
+  t.test_files = FileList['spec/**/*_spec.rb']
+  t.verbose = true
+end
+
+desc 'Default Task'
+task :default => [ :test, 'test:travis' ]
+
+namespace :test do
+  mock = ENV['FOG_MOCK'] || 'true'
+  task :travis do
+      system 'FOG_MOCK=true shindo'
+  end
+end
+
+#require 'gem2deb/rake/testtask'
+
+#Gem2Deb::Rake::TestTask.new do |t|
+  #t.libs << 'lib' << 'tests'
+  #t.test_files = FileList['tests/**/*_tests.rb']
+#end

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



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