Skip to content

Commit

Permalink
fix: update node to fix mocha tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed May 29, 2020
1 parent 84153fa commit 9c0ba57
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- bin/ipfs
- *store_gomod
interop:
executor: node
executor: node:12
parallelism: 4
steps:
- *make_out_dirs
Expand All @@ -191,15 +191,14 @@ jobs:
- run:
name: Installing reporting tools
command: |
npm install --save-dev mocha-junit-reporter@1.23.1 [email protected]
npm install --save-dev mocha-circleci-reporter@0.0.3
working_directory: ~/ipfs/go-ipfs/interop
- run:
name: Running tests
command: |
mkdir -p /tmp/test-results/interop/
export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
echo '{"reporterEnabled": "mocha-junit-reporter, spec"}' > mocha-conf.json
node_modules/.bin/mocha -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json" \
node_modules/.bin/mocha --reporter mocha-circleci-reporter \
$(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split)
working_directory: ~/ipfs/go-ipfs/interop
environment:
Expand Down

0 comments on commit 9c0ba57

Please sign in to comment.