ci: parallelize interop tests
Steven Allen committed
Aug 14, 2019 at 23:10 UTC
5a1686931f7674e4b51b7ef5f02ddd5fd39d1848
1 file changed
+4
-2
.circleci/config.yml
+4
-2
@@ -146,6 +146,7 @@ jobs:
146
executor: node
147
environment:
148
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
149
+ parallelism: 4
150
steps:
151
- *make_out_dirs
152
- attach_workspace:
@@ -171,7 +172,7 @@ jobs:
172
- run:
173
name: Installing reporting tools
174
command: |
174
- npm install --save mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0
175
+ npm install --save-dev mocha-junit-reporter@1.23.1 mocha-multi-reporters@1.1.0
176
working_directory: ~/ipfs/go-ipfs/interop
177
- run:
178
name: Running tests
@@ -179,7 +180,8 @@ jobs:
180
mkdir -p /tmp/test-results/interop/
181
export MOCHA_FILE="$(mktemp /tmp/test-results/interop/unit.XXXXXX.xml)"
182
echo '{"reporterEnabled": "mocha-junit-reporter, spec"}' > mocha-conf.json
182
- node_modules/.bin/mocha test/node.js -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json"
183
+ node_modules/.bin/mocha -R mocha-multi-reporters --reporter-options "configFile=mocha-conf.json" \
184
+ $(sed -n -e "s|^require('\(.*\)')$|test/\1|p" test/node.js | circleci tests split)
185
working_directory: ~/ipfs/go-ipfs/interop
186
environment:
187
IPFS_REUSEPORT: false