@cryptotaxi247 / kubo / commits / 838347282

ci: send interop results to stdout and junit

Steven Allen committed Aug 14, 2019 at 18:40 UTC 838347282a7729307646beed9246a21c81154651
1 file changed +7 -2
.circleci/config.yml
+7 -2
@@ -163,18 +163,23 @@ jobs:
163 name: Installing dependencies
164 command: |
165 npm install
166 - npm install mocha-junit-reporter
166 working_directory: ~/ipfs/go-ipfs/interop
167 - save_cache:
168 key: v1-interop-{{ checksum "~/ipfs/go-ipfs/interop/package-lock.json" }}
169 paths:
170 - ~/ipfs/go-ipfs/interop/node_modules
171 + - run:
172 + name: Installing reporting tools
173 + command: |
174 + npm install --save mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0
175 + working_directory: ~/ipfs/go-ipfs/interop
176 - run:
177 name: Running tests
178 command: |
179 mkdir -p /tmp/test-results/interop/
180 export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
177 - node_modules/.bin/mocha --reporter=mocha-junit-reporter 'test/node.js'
181 + echo '{"reporterEnabled": "mocha-junit-reporter, spec"}' > mocha-conf.json
182 + node_modules/.bin/mocha test/node.js -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json"
183 working_directory: ~/ipfs/go-ipfs/interop
184 environment:
185 IPFS_REUSEPORT: false