Run tests in multiple reusable forks to improve test performance

This commit is contained in:
Mikolaj Izdebski 2019-07-01 13:15:12 +02:00
parent 1be85f2d9e
commit 7b1c571078

View File

@ -26,12 +26,13 @@ to assist with developing IO functionality.
%setup -q -n commons-io-%{version}-src
sed -i 's/\r//' *.txt
%build
# Run tests in multiple reusable forks to improve test performance
sed -i -e /reuseForks/d -e /forkCount/d pom.xml
%mvn_file : commons-io %{name}
%mvn_alias : org.apache.commons:
# NOTE: tests *may* fail because commons-io is on surefire's classpath and causes
# tests to be run against the system version and not the one we just built
%build
%mvn_build
%install