Browse code

Added %check for rubygem-highline

Change-Id: I597138e748388787a39e89219a4353f644edfeed
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3700
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

changpil authored on 2017/09/06 06:42:15
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 %define gem_name highline
4 4
 Name: rubygem-highline
5 5
 Version: 1.7.8
6
-Release: 3%{?dist}
6
+Release: 4%{?dist}
7 7
 Summary: A high-level IO library that provides validation, type conversion, and more for command-line interfaces
8 8
 Group: Applications/Programming
9 9
 License: BSD
... ...
@@ -19,10 +19,18 @@ A high-level IO library that provides validation, type conversion, and more for
19 19
 %build
20 20
 %install
21 21
 gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
22
+
23
+%check
24
+cd %{buildroot}%{gemdir}/gems/highline-%{version}
25
+gem install bundler code_statistics
26
+LANG=en_US.UTF-8  rake test
27
+
22 28
 %files
23 29
 %defattr(-,root,root,-)
24 30
 %{gemdir}
25 31
 %changelog
32
+* Tue Sep 05 2017 Chang Lee <changlee@vmware.com> 1.7.8-4
33
+- Added %check
26 34
 * Wed Jan 25 2017 Anish Swaminathan <anishs@vmware.com> 1.7.8-3
27 35
 - Bump up release number to reflect ruby upgrade
28 36
 * Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.7.8-2