@cryptotaxi247 / kubo / commits / 16b091311

fix: update node to fix mocha tests

(cherry picked from commit 4e14582c56f6ef90f4b6abcf5234a0ca6a72a064)

Steven Allen committed May 29, 2020 at 16:10 UTC 16b09131124c56377cdcb723587f2c1701469c56
1 file changed +3 -4
.circleci/config.yml
+3 -4
@@ -44,7 +44,7 @@ executors:
44 TEST_VERBOSE: 1
45 node:
46 docker:
47 - - image: circleci/node:10
47 + - image: circleci/node:12
48 working_directory: ~/ipfs/go-ipfs
49 environment:
50 <<: *default_environment
@@ -191,15 +191,14 @@ jobs:
191 - run:
192 name: Installing reporting tools
193 command: |
194 - npm install --save-dev mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0
194 + npm install --save-dev mocha-circleci-reporter@0.0.3
195 working_directory: ~/ipfs/go-ipfs/interop
196 - run:
197 name: Running tests
198 command: |
199 mkdir -p /tmp/test-results/interop/
200 export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
201 - echo '{"reporterEnabled": "mocha-junit-reporter, spec"}' > mocha-conf.json
202 - node_modules/.bin/mocha -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json" \
201 + node_modules/.bin/mocha --reporter mocha-circleci-reporter \
202 $(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split)
203 working_directory: ~/ipfs/go-ipfs/interop
204 environment: