Skip to content

Commit

Permalink
test: restore ipfs-interop (#8613)
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Jan 12, 2022
1 parent 2a871ef commit 14046d0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .circleci/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,22 +227,13 @@ jobs:
name: Installing dependencies
command: |
npm init -y
npm install ipfs@^0.59.1
npm install ipfs/interop#master
npm install ipfs@^0.61.0
npm install ipfs-interop@^8.0.0
npm install [email protected]
working_directory: ~/ipfs/go-ipfs/interop
- run:
name: Running tests
command: |
WORKDIR=$(pwd)
cd /tmp
git clone https://github.com/ipfs/js-ipfs.git
cd js-ipfs
git checkout 1dcac76f56972fc3519526e93567e39d685033dd
npm install
npm run build
npm run link
cd $WORKDIR
mkdir -p /tmp/test-results/interop/
export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
npx ipfs-interop -- -t node -f $(sed -n -e "s|^require('\(.*\)')$|test/\1|p" node_modules/ipfs-interop/test/node.js | circleci tests split) -- --reporter mocha-circleci-reporter
Expand All @@ -251,9 +242,6 @@ jobs:
LIBP2P_TCP_REUSEPORT: false
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
IPFS_JS_EXEC: /tmp/js-ipfs/packages/ipfs/src/cli.js
IPFS_JS_MODULE: /tmp/js-ipfs/packages/ipfs/dist/cjs/src/index.js
IPFS_JS_HTTP_MODULE: /tmp/js-ipfs/packages/ipfs-http-client/dist/cjs/src/index.js
- store_test_results:
path: /tmp/test-results
go-ipfs-api:
Expand Down

0 comments on commit 14046d0

Please sign in to comment.