Skip to content

Commit b92408f

Browse files
authored
report server data on error (#40)
1 parent 55887d9 commit b92408f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ jobs:
8989
- run:
9090
name: Integration Tests
9191
command: mvn integration-test
92+
- run:
93+
name: zip and retrieve test data
94+
command: ./docker/stop_db.sh
95+
when: on_fail
96+
- store_artifacts:
97+
path: result.tar.gz
9298
- report
9399
- store_cache
94100

@@ -126,6 +132,12 @@ jobs:
126132
- run:
127133
name: Integration Tests
128134
command: mvn integration-test -Ddistributed -Darango.topology=$STARTER_MODE
135+
- run:
136+
name: zip and retrieve test data
137+
command: ./docker/stop_db.sh
138+
when: on_fail
139+
- store_artifacts:
140+
path: result.tar.gz
129141
- report
130142
- store_cache
131143

@@ -153,6 +165,12 @@ jobs:
153165
- run:
154166
name: Integration Tests
155167
command: mvn integration-test -Ddistributed -DSslTest=true -Dit.test=com.arangodb.kafka.SslIT
168+
- run:
169+
name: zip and retrieve test data
170+
command: ./docker/stop_db.sh
171+
when: on_fail
172+
- store_artifacts:
173+
path: result.tar.gz
156174
- report
157175
- store_cache
158176

@@ -181,6 +199,12 @@ jobs:
181199
- run:
182200
name: Integration Tests
183201
command: mvn integration-test -DresilienceTests -Darango.topology=$STARTER_MODE -Dit.test=com.arangodb.kafka.resilience.**
202+
- run:
203+
name: zip and retrieve test data
204+
command: ./docker/stop_db.sh
205+
when: on_fail
206+
- store_artifacts:
207+
path: result.tar.gz
184208
- report
185209
- store_cache
186210

docker/stop_db.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash -x
2+
3+
docker stop adb
4+
5+
docker cp adb-data:/data - > result.tar
6+
gzip result.tar

0 commit comments

Comments
 (0)