Skip to content

Commit 30788c1

Browse files
idodeclareVladimir Kotal
authored andcommitted
Skip Python tests if -Dtest=... is used
1 parent 55dd805 commit 30788c1

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

opengrok-tools/pom.xml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1919
CDDL HEADER END
2020
2121
Copyright (c) 2010, 2020, Oracle and/or its affiliates. All rights reserved.
22-
Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
22+
Portions Copyright (c) 2017-2018, 2020, Chris Fraire <[email protected]>.
2323
2424
-->
2525
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -45,6 +45,15 @@ Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
4545
</properties>
4646

4747
<profiles>
48+
<profile>
49+
<id>default</id>
50+
<activation>
51+
<activeByDefault>true</activeByDefault>
52+
</activation>
53+
<properties>
54+
<skipPythonTests>false</skipPythonTests>
55+
</properties>
56+
</profile>
4857
<profile>
4958
<id>Windows python environment</id>
5059
<activation>
@@ -57,6 +66,28 @@ Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
5766
<python.environment>${project.build.directory}/env/Scripts</python.environment>
5867
</properties>
5968
</profile>
69+
<profile>
70+
<id>skipTestsRun</id>
71+
<activation>
72+
<property>
73+
<name>skipTests</name>
74+
</property>
75+
</activation>
76+
<properties>
77+
<skipPythonTests>true</skipPythonTests>
78+
</properties>
79+
</profile>
80+
<profile>
81+
<id>specificTestRun</id>
82+
<activation>
83+
<property>
84+
<name>test</name>
85+
</property>
86+
</activation>
87+
<properties>
88+
<skipPythonTests>true</skipPythonTests>
89+
</properties>
90+
</profile>
6091
</profiles>
6192

6293
<build>
@@ -216,6 +247,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
216247
<argument>setup.py</argument>
217248
<argument>install</argument>
218249
</arguments>
250+
<skip>${skipPythonTests}</skip>
219251
</configuration>
220252
<phase>test</phase>
221253
<goals>
@@ -289,7 +321,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
289321
<argument>setup.py</argument>
290322
<argument>test</argument>
291323
</arguments>
292-
<skip>${skipTests}</skip>
324+
<skip>${skipPythonTests}</skip>
293325
</configuration>
294326
<phase>test</phase>
295327
<goals>

0 commit comments

Comments
 (0)