Skip to content

Commit 91b1db5

Browse files
authored
Merge pull request #7395 from ipfs/fix/interop-test-results
fix: update node to fix mocha tests
2 parents 84153fa + 4e14582 commit 91b1db5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ executors:
4444
TEST_VERBOSE: 1
4545
node:
4646
docker:
47-
- image: circleci/node:10
47+
- image: circleci/node:12
4848
working_directory: ~/ipfs/go-ipfs
4949
environment:
5050
<<: *default_environment
@@ -191,15 +191,14 @@ jobs:
191191
- run:
192192
name: Installing reporting tools
193193
command: |
194-
npm install --save-dev mocha-junit-reporter@1.23.1 [email protected]
194+
npm install --save-dev mocha-circleci-reporter@0.0.3
195195
working_directory: ~/ipfs/go-ipfs/interop
196196
- run:
197197
name: Running tests
198198
command: |
199199
mkdir -p /tmp/test-results/interop/
200200
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 \
203202
$(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split)
204203
working_directory: ~/ipfs/go-ipfs/interop
205204
environment:

0 commit comments

Comments
 (0)