This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new f6dd4bd Camel-Cassandraql: Use the same profiles as the other testcontainers tests f6dd4bd is described below commit f6dd4bd1ee87ae7afe81b73f0bbacb731eb5375f Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Jul 29 14:17:09 2020 +0200 Camel-Cassandraql: Use the same profiles as the other testcontainers tests --- components/camel-cassandraql/pom.xml | 59 ++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 6 deletions(-) diff --git a/components/camel-cassandraql/pom.xml b/components/camel-cassandraql/pom.xml index bcc0b4e..3baed31 100644 --- a/components/camel-cassandraql/pom.xml +++ b/components/camel-cassandraql/pom.xml @@ -118,25 +118,72 @@ </plugins> </build> - <!-- only run tests if this profile is enabled --> <profiles> <profile> - <id>cassandra-integration-tests</id> + <id>cassandraql-skip-tests</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> <build> <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> + <skipTests>true</skipTests> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!-- activate test if the docker socket file is accessible --> + <profile> + <id>cassandraql-tests-docker-file</id> + <activation> + <file> + <exists>/var/run/docker.sock</exists> + </file> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skipTests>${skipTests}</skipTests> + <forkCount>1</forkCount> + <systemPropertyVariables> + <visibleassertions.silence>true</visibleassertions.silence> + </systemPropertyVariables> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <!-- activate test if the DOCKER_HOST env var is set --> + <profile> + <id>cassandraql-tests-docker-env</id> + <activation> + <property> + <name>env.DOCKER_HOST</name> + </property> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <skipTests>${skipTests}</skipTests> <forkCount>1</forkCount> - <reuseForks>false</reuseForks> - <includes> - <include>**/*Test.java</include> - </includes> + <systemPropertyVariables> + <visibleassertions.silence>true</visibleassertions.silence> + </systemPropertyVariables> </configuration> </plugin> </plugins> </build> </profile> + </profiles> </project>