Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update node to fix mocha tests #7395

Merged
merged 1 commit into from
May 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ executors:
TEST_VERBOSE: 1
node:
docker:
- image: circleci/node:10
- image: circleci/node:12
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
Expand Down Expand Up @@ -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