NOW: try to launch tests master
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 13 Mar 2017 11:28:58 +0000 (12:28 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 13 Mar 2017 11:28:58 +0000 (12:28 +0100)
NOW/debian/control
NOW/debian/ruby-tests.rb [new file with mode: 0644]
NOW/debian/rules

index 6db04c2..fcaa0e0 100644 (file)
@@ -2,7 +2,7 @@ Source: now
 Section: ruby
 Priority: optional
 Maintainer: František Dvořák <valtri@civ.zcu.cz>
-Build-Depends: debhelper (>= 7.0.50~), dh-apache2, apache2-dev, gem2deb (>= 0.6.1~)
+Build-Depends: debhelper (>= 7.0.50~), dh-apache2, apache2-dev, gem2deb (>= 0.6.1~), ruby-ipaddress (>= 0.8.2), ruby-libopennebula, ruby-rspec, ruby-sinatra
 Standards-Version: 3.9.5
 Homepage: https://github.com/CESNET/NOW
 #Vcs-Git: git://git.debian.org/collab-maint/now.git
diff --git a/NOW/debian/ruby-tests.rb b/NOW/debian/ruby-tests.rb
new file mode 100644 (file)
index 0000000..03e3804
--- /dev/null
@@ -0,0 +1,2 @@
+require 'rspec'
+RSpec::Core::Runner.run(Dir.glob("./spec/*/*_spec.rb"))
index 9e7ad76..95b11e3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 export DH_VERBOSE=1
 # rspec >= 3 required
-export DH_RUBY_IGNORE_TESTS=all
+#export DH_RUBY_IGNORE_TESTS=all
 export DH_RUBY_USE_DH_AUTO_INSTALL_DESTDIR=1
 
 %: