From 94d6ed635b3417c4a48ccceeae32b0e43308e365 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 28 Oct 2015 18:49:16 +0100 Subject: [PATCH] Enable ITs only conditionally --- xmvn.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xmvn.spec b/xmvn.spec index 7e7508b..5c92d71 100644 --- a/xmvn.spec +++ b/xmvn.spec @@ -2,6 +2,10 @@ # any additional bundles. %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^osgi\\($ +# Integration tests are disabled by default, but you can run them by +# adding "--with its" to rpmbuild or mock invocation. +%bcond_with its + Name: xmvn Version: 2.5.0 Release: 1%{?dist} @@ -153,6 +157,10 @@ This package provides %{summary}. %mvn_package ":xmvn{,-it}" __noinstall +%if %{without its} +%pom_disable_module xmvn-it +%endif + # remove dependency plugin maven-binaries execution # we provide apache-maven by symlink %pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"