diff --git a/.travis.yml b/.travis.yml index 23ca2bc0b8b..29fffc803e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -346,7 +346,7 @@ jobs: - docker env: TESTNG_GROUPS='-Dgroups=batch-index' JVM_RUNTIME='-Djvm.runtime=8' USE_INDEXER='middleManager' script: &run_integration_test - - ${MVN} verify -pl integration-tests -P integration-tests ${TESTNG_GROUPS} ${JVM_RUNTIME} -Dit.indexer=${USE_INDEXER} ${MAVEN_SKIP} + - ${MVN} verify -pl integration-tests -P integration-tests ${TESTNG_GROUPS} ${JVM_RUNTIME} -Dit.indexer=${USE_INDEXER} -Dzk.version=${ZK_VERSION} ${MAVEN_SKIP} after_failure: &integration_test_diags - for v in ~/shared/logs/*.log ; do echo $v logtail ======================== ; tail -100 $v ; diff --git a/integration-tests/README.md b/integration-tests/README.md index 6b6344eb06c..3bba04ca476 100644 --- a/integration-tests/README.md +++ b/integration-tests/README.md @@ -56,8 +56,10 @@ To run all tests from a test group using docker and mvn run the following comman To run only a single test using mvn run the following command: ``` - mvn verify -P integration-tests -Dit.test= + mvn verify -P integration-tests -Dgroups= -Dit.test= ``` +The test group should always be set, as certain test setup and cleanup tasks are based on the test group. You can find +the test group for a given test as an annotation in the respective test class. Add `-rf :druid-integration-tests` when running integration tests for the second time or later without changing the code of core modules in between to skip up-to-date checks for the whole module dependency tree. diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index cd0bb64fa05..fc3b7b50eec 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -393,6 +393,7 @@ false false middleManager + 3.5 @@ -423,6 +424,7 @@ ${docker.run.skip} ${it.indexer} ${mysql.version} + ${zk.version} ${project.basedir}/build_run_cluster.sh