!2 Move the test to the %check stage

From: @maminjie
Reviewed-by: @wang_yue111,@small_leek,@wangchong1995924
Signed-off-by: @small_leek,@wangchong1995924
This commit is contained in:
openeuler-ci-bot 2021-04-20 16:05:44 +08:00 committed by Gitee
commit 269e8d2a82

View File

@ -2,7 +2,7 @@
%global short_name commons-%{base_name} %global short_name commons-%{base_name}
Name: apache-%{short_name} Name: apache-%{short_name}
Version: 1.9.4 Version: 1.9.4
Release: 1 Release: 2
Summary: Java utility methods for accessing and modifying the properties of arbitrary JavaBeans Summary: Java utility methods for accessing and modifying the properties of arbitrary JavaBeans
License: ASL 2.0 License: ASL 2.0
BuildArch: noarch BuildArch: noarch
@ -34,11 +34,14 @@ sed -i 's/\r//' *.txt
%mvn_file : %{short_name} %{short_name}-core %{short_name}-bean-collections %mvn_file : %{short_name} %{short_name}-core %{short_name}-bean-collections
%build %build
%mvn_build %mvn_build --skipTests
%install %install
%mvn_install %mvn_install
%check
xmvn test --batch-mode --offline verify
%files -f .mfiles %files -f .mfiles
%doc RELEASE-NOTES.txt %doc RELEASE-NOTES.txt
%doc LICENSE.txt NOTICE.txt %doc LICENSE.txt NOTICE.txt
@ -47,5 +50,8 @@ sed -i 's/\r//' *.txt
%doc LICENSE.txt NOTICE.txt %doc LICENSE.txt NOTICE.txt
%changelog %changelog
* Fri Apr 16 2021 maminjie <maminjie1@huawei.com> - 1.9.4-2
- Move the test to the %check stage
* Wed Jul 29 2020 yaokai <yaokai13@huawei.com> - 1.9.4-1 * Wed Jul 29 2020 yaokai <yaokai13@huawei.com> - 1.9.4-1
- package init - package init