Repository: beam
Updated Branches:
  refs/heads/master 5d6dafa26 -> ebd4ae6eb


[BEAM-1356] `mvn clean install -DskipTests` still runs python tests


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/90c59616
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/90c59616
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/90c59616

Branch: refs/heads/master
Commit: 90c59616017f29a8ffd46452fca3a3df5d27a3d0
Parents: 5d6dafa
Author: Aviem Zur <[email protected]>
Authored: Tue Feb 21 07:23:28 2017 +0200
Committer: Aviem Zur <[email protected]>
Committed: Tue Feb 21 21:01:03 2017 +0200

----------------------------------------------------------------------
 sdks/python/pom.xml | 59 ++++++++++++++++++++++++++++++++----------------
 1 file changed, 40 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/90c59616/sdks/python/pom.xml
----------------------------------------------------------------------
diff --git a/sdks/python/pom.xml b/sdks/python/pom.xml
index 2b35f4d..86d28e8 100644
--- a/sdks/python/pom.xml
+++ b/sdks/python/pom.xml
@@ -124,25 +124,6 @@
             </configuration>
           </execution>
           <execution>
-            <id>setuptools-test</id>
-            <phase>test</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-            <configuration>
-              <executable>${python.user.base}/bin/tox</executable>
-              <arguments>
-                <argument>-e</argument>
-                <argument>py27</argument>
-                <argument>-c</argument>
-                <argument>tox.ini</argument>
-              </arguments>
-              <environmentVariables>
-                <PYTHONUSERBASE>${python.user.base}</PYTHONUSERBASE>
-              </environmentVariables>
-            </configuration>
-          </execution>
-          <execution>
             <id>setuptools-sdist</id>
             <phase>package</phase>
             <goals>
@@ -165,4 +146,44 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>test-python-sdk</id>
+      <activation>
+        <property>
+          <name>!skipTests</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>exec-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>setuptools-test</id>
+                <phase>test</phase>
+                <goals>
+                  <goal>exec</goal>
+                </goals>
+                <configuration>
+                  <executable>${python.user.base}/bin/tox</executable>
+                  <arguments>
+                    <argument>-e</argument>
+                    <argument>py27</argument>
+                    <argument>-c</argument>
+                    <argument>tox.ini</argument>
+                  </arguments>
+                  <environmentVariables>
+                    <PYTHONUSERBASE>${python.user.base}</PYTHONUSERBASE>
+                  </environmentVariables>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Reply via email to