enable tests in Travis CI for fedora

This commit is contained in:
Mario Limonciello 2017-06-13 14:17:12 -05:00 committed by Mario Limonciello
parent 0c50ed1af3
commit ab6884f44a
2 changed files with 14 additions and 4 deletions

View File

@ -21,10 +21,11 @@ mv fwupd-$VERSION.tar.xz $HOME/rpmbuild/SOURCES/
#generate a spec file
rm -rf fwupd.spec
sed "s/#VERSION#/$VERSION/;
s/#BUILD#/1/;
s/#LONGDATE#/`date '+%a %b %d %Y'`/
s/#ALPHATAG#/alpha/;
sed "s,#VERSION#,$VERSION,;
s,enable_tests 0,enable_tests 1,;
s,#BUILD#,1,;
s,#LONGDATE#,`date '+%a %b %d %Y'`,;
s,#ALPHATAG#,alpha,;
s,Source0.*,Source0:\tfwupd-$VERSION.tar.xz," \
contrib/fwupd.spec.in > fwupd.spec

View File

@ -6,6 +6,8 @@
%define alphatag #ALPHATAG#
%global enable_tests 0
%ifarch x86_64 %{ix86}
%global have_smbios 1
%endif
@ -112,7 +114,11 @@ Rendered labels for display during system firmware updates.
%meson \
-Denable-doc=true \
-Denable-man=true \
%if 0%{?enable_tests}
-Denable-tests=true \
%else
-Denable-tests=false \
%endif
-Denable-thunderbolt=false \
%if 0%{?have_uefi}
-Denable-uefi=true \
@ -129,6 +135,9 @@ Rendered labels for display during system firmware updates.
-Denable-colorhug=true
%meson_build
%if 0%{?enable_tests}
%meson_test
%endif
%install
%meson_install