From 5a1686931f7674e4b51b7ef5f02ddd5fd39d1848 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 14 Aug 2019 23:10:17 -0700 Subject: [PATCH] ci: parallelize interop tests --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e2fae1c01..6375b87e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -146,6 +146,7 @@ jobs: executor: node environment: IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs + parallelism: 4 steps: - *make_out_dirs - attach_workspace: @@ -171,7 +172,7 @@ jobs: - run: name: Installing reporting tools command: | - npm install --save mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0 + npm install --save-dev mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0 working_directory: ~/ipfs/go-ipfs/interop - run: name: Running tests @@ -179,7 +180,8 @@ jobs: 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 test/node.js -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json" + node_modules/.bin/mocha -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json" \ + $(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split) working_directory: ~/ipfs/go-ipfs/interop environment: IPFS_REUSEPORT: false