Skip to content

Commit 582eaf1

Browse files
authored
fix(ci): js-ipfs with fixed pubsub wire format
uses js-ipfs from ipfs/js-ipfs#3922
1 parent 9955071 commit 582eaf1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.circleci/main.yml

+12
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,15 @@ jobs:
234234
- run:
235235
name: Running tests
236236
command: |
237+
WORKDIR=$(pwd)
238+
cd /tmp
239+
git clone https://github.com/ipfs/js-ipfs.git
240+
cd js-ipfs
241+
git checkout 1dcac76f56972fc3519526e93567e39d685033dd
242+
npm install
243+
npm run build
244+
npm run link
245+
cd $WORKDIR
237246
mkdir -p /tmp/test-results/interop/
238247
export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
239248
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
@@ -242,6 +251,9 @@ jobs:
242251
LIBP2P_TCP_REUSEPORT: false
243252
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
244253
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
254+
IPFS_JS_EXEC: /tmp/js-ipfs/packages/ipfs/src/cli.js
255+
IPFS_JS_MODULE: /tmp/js-ipfs/packages/ipfs/dist/cjs/src/index.js
256+
IPFS_JS_HTTP_MODULE: /tmp/js-ipfs/packages/ipfs-http-client/dist/cjs/src/index.js
245257
- store_test_results:
246258
path: /tmp/test-results
247259
go-ipfs-api:

0 commit comments

Comments
 (0)