Run solc-js tests in parallel on circleci.

This commit is contained in:
chriseth 2020-08-31 11:35:37 +02:00
parent 98cc1d9994
commit c1c6537108
2 changed files with 11 additions and 1 deletions

View File

@ -735,6 +735,7 @@ jobs:
- image: buildpack-deps:latest
environment:
TERM: xterm
parallelism: 3
steps:
- checkout
- attach_workspace:

View File

@ -27,7 +27,16 @@ VERSION="$2"
function install_fn { echo "Nothing to install."; }
function compile_fn { echo "Nothing to compile."; }
function test_fn { npm test; }
function test_fn
{
if [ "$CIRCLECI" ]
then
# This does not run the linter.
npx tape $(circleci tests glob "./test/*.js" | grep -v "test/index.js" | circleci tests split --split-by=timings)
else
npm test
fi
}
function solcjs_test
{