JAMES-2620 Integration tests should be activated by a maven profile

Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/d700a971
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/d700a971
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/d700a971

Branch: refs/heads/master
Commit: d700a97186ab86618924a29c60e8560a863b7028
Parents: 7291f49
Author: Antoine Duprat <adup...@linagora.com>
Authored: Mon Dec 10 12:59:45 2018 +0100
Committer: Antoine Duprat <adup...@linagora.com>
Committed: Mon Dec 10 12:59:45 2018 +0100

----------------------------------------------------------------------
 .../compilation/java-8/integration_tests.sh     |  2 +-
 mpt/impl/imap-mailbox/external-james/pom.xml    | 31 ++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/d700a971/dockerfiles/compilation/java-8/integration_tests.sh
----------------------------------------------------------------------
diff --git a/dockerfiles/compilation/java-8/integration_tests.sh 
b/dockerfiles/compilation/java-8/integration_tests.sh
index 8570bb7..4047d8c 100755
--- a/dockerfiles/compilation/java-8/integration_tests.sh
+++ b/dockerfiles/compilation/java-8/integration_tests.sh
@@ -54,4 +54,4 @@ git checkout $SHA1
 
 
 mvn -DskipTests -pl org.apache.james:apache-james-mpt-external-james -am 
package
-mvn -Dtest=JamesDeploymentValidationTest -pl 
org.apache.james:apache-james-mpt-external-james test
+mvn -pl org.apache.james:apache-james-mpt-external-james test 
-Pintegration-tests

http://git-wip-us.apache.org/repos/asf/james-project/blob/d700a971/mpt/impl/imap-mailbox/external-james/pom.xml
----------------------------------------------------------------------
diff --git a/mpt/impl/imap-mailbox/external-james/pom.xml 
b/mpt/impl/imap-mailbox/external-james/pom.xml
index 595d9ee..74bf4a6 100644
--- a/mpt/impl/imap-mailbox/external-james/pom.xml
+++ b/mpt/impl/imap-mailbox/external-james/pom.xml
@@ -68,4 +68,35 @@
             <artifactId>commons-lang3</artifactId>
         </dependency>
     </dependencies>
+
+    <profiles>
+        <profile>
+            <id>dev</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <skipTests>true</skipTests>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>integration-tests</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to