]> git.pld-linux.org Git - packages/fpm.git/commitdiff
run rspec when tests enabled
authorElan Ruusamäe <glen@delfi.ee>
Tue, 25 Aug 2015 12:51:00 +0000 (15:51 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 25 Aug 2015 12:51:00 +0000 (15:51 +0300)
fpm.spec

index d2f710ba47c68024946a73b15cfb2a5a87e03935..3349bfc386630a9480822acbd83451606e7cc104 100644 (file)
--- a/fpm.spec
+++ b/fpm.spec
@@ -63,6 +63,10 @@ ruby -r rubygems -e 'spec = eval(File.read("%{name}.gemspec"))
        file.puts spec.to_ruby_for_cache
 end'
 
+%if %{with tests}
+rspec
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
This page took 0.083739 seconds and 4 git commands to generate.