remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remixdesktop/run_ci_test.sh

21 lines
516 B

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