#!/usr/bin/env bash set -e TEST_EXITCODE=0 yarn run build:e2e && node ./splice_tests.js TESTFILES=$(node ./splice_tests.js | circleci tests split --split-by=timings) for TESTFILE in $TESTFILES; do yarn run test --test ./build-e2e/remixdesktop/test/tests/app/${TESTFILE} || TEST_EXITCODE=1 done if [ "$CIRCLE_NODE_INDEX" -eq 0 ]; then yarn test:isogit elif [ "$CIRCLE_NODE_INDEX" -eq 1 ]; then yarn test:offline fi echo "$TEST_EXITCODE" if [ "$TEST_EXITCODE" -eq 1 ] then exit 1 fi