mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 16:58:11 +08:00
Merge pull request #7395 from ipfs/fix/interop-test-results
fix: update node to fix mocha tests
This commit is contained in:
commit
91b1db5422
@ -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
|
||||
@ -191,15 +191,14 @@ jobs:
|
||||
- run:
|
||||
name: Installing reporting tools
|
||||
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
|
||||
- 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user