Commit 16b09131 authored by Steven Allen's avatar Steven Allen

fix: update node to fix mocha tests

(cherry picked from commit 4e14582c)
parent cee60700
...@@ -44,7 +44,7 @@ executors: ...@@ -44,7 +44,7 @@ executors:
TEST_VERBOSE: 1 TEST_VERBOSE: 1
node: node:
docker: docker:
- image: circleci/node:10 - image: circleci/node:12
working_directory: ~/ipfs/go-ipfs working_directory: ~/ipfs/go-ipfs
environment: environment:
<<: *default_environment <<: *default_environment
...@@ -191,15 +191,14 @@ jobs: ...@@ -191,15 +191,14 @@ jobs:
- run: - run:
name: Installing reporting tools name: Installing reporting tools
command: | command: |
npm install --save-dev mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0 npm install --save-dev mocha-circleci-reporter@0.0.3
working_directory: ~/ipfs/go-ipfs/interop working_directory: ~/ipfs/go-ipfs/interop
- run: - run:
name: Running tests name: Running tests
command: | command: |
mkdir -p /tmp/test-results/interop/ mkdir -p /tmp/test-results/interop/
export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)" export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
echo '{"reporterEnabled": "mocha-junit-reporter, spec"}' > mocha-conf.json node_modules/.bin/mocha --reporter mocha-circleci-reporter \
node_modules/.bin/mocha -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json" \
$(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split) $(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split)
working_directory: ~/ipfs/go-ipfs/interop working_directory: ~/ipfs/go-ipfs/interop
environment: environment:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment