diff --git a/.circleci/config.yml b/.circleci/config.yml index 5c13220..f9a3489 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -89,6 +89,12 @@ jobs: - run: name: Integration Tests command: mvn integration-test + - run: + name: zip and retrieve test data + command: ./docker/stop_db.sh + when: on_fail + - store_artifacts: + path: result.tar.gz - report - store_cache @@ -126,6 +132,12 @@ jobs: - run: name: Integration Tests command: mvn integration-test -Ddistributed -Darango.topology=$STARTER_MODE + - run: + name: zip and retrieve test data + command: ./docker/stop_db.sh + when: on_fail + - store_artifacts: + path: result.tar.gz - report - store_cache @@ -153,6 +165,12 @@ jobs: - run: name: Integration Tests command: mvn integration-test -Ddistributed -DSslTest=true -Dit.test=com.arangodb.kafka.SslIT + - run: + name: zip and retrieve test data + command: ./docker/stop_db.sh + when: on_fail + - store_artifacts: + path: result.tar.gz - report - store_cache @@ -181,6 +199,12 @@ jobs: - run: name: Integration Tests command: mvn integration-test -DresilienceTests -Darango.topology=$STARTER_MODE -Dit.test=com.arangodb.kafka.resilience.** + - run: + name: zip and retrieve test data + command: ./docker/stop_db.sh + when: on_fail + - store_artifacts: + path: result.tar.gz - report - store_cache diff --git a/docker/stop_db.sh b/docker/stop_db.sh new file mode 100755 index 0000000..1e21621 --- /dev/null +++ b/docker/stop_db.sh @@ -0,0 +1,6 @@ +#!/bin/bash -x + +docker stop adb + +docker cp adb-data:/data - > result.tar +gzip result.tar