@cryptotaxi247 / kubo / commits / c9adad27a

ci: spit out junit reports from the interop tests

Steven Allen committed Aug 14, 2019 at 18:12 UTC c9adad27abb5e63da7b951090a477b820da2b793
1 file changed +13 -2
.circleci/config.yml
+13 -2
@@ -160,15 +160,26 @@ jobs:
160 - v1-interop-{{ checksum "~/ipfs/go-ipfs/interop/package-lock.json" }}
161 - v1-interop-
162 - run:
163 - command: npm install
163 + name: Installing dependencies
164 + command: |
165 + npm install
166 + npm install mocha-junit-reporter
167 working_directory: ~/ipfs/go-ipfs/interop
168 - save_cache:
169 key: v1-interop-{{ checksum "~/ipfs/go-ipfs/interop/package-lock.json" }}
170 paths:
171 - ~/ipfs/go-ipfs/interop/node_modules
172 - run:
170 - command: npm run test:node
173 + name: Running tests
174 + command: |
175 + mkdir -p /tmp/test-results/interop/
176 + export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
177 + node_modules/.bin/mocha --reporter=mocha-junit-reporter 'test/node.js'
178 working_directory: ~/ipfs/go-ipfs/interop
179 + environment:
180 + IPFS_REUSEPORT: false
181 + - store_test_results:
182 + path: /tmp/test-results
183 go-ipfs-api:
184 executor: golang
185 steps: