Move yarn install to after potential bundle check failure in bin/e2e (#12681)
This commit is contained in:
parent
aae592f86c
commit
c74c9e4331
1 changed files with 7 additions and 1 deletions
8
bin/e2e
8
bin/e2e
|
|
@ -1,13 +1,19 @@
|
|||
#!/bin/bash
|
||||
printf "Doing a quick bundle check to make sure gems are all up to date.\n\n"
|
||||
bundle check # ensure gems are up to date
|
||||
yarn install # ensure npm packages are up to date
|
||||
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Unable to launch end to end tests. Ensure that all your gems are installed and up to date."
|
||||
exit;
|
||||
fi
|
||||
|
||||
yarn install # ensure npm packages are up to date
|
||||
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Unable to launch end to end tests. An error occurred while running yarn install."
|
||||
exit;
|
||||
fi
|
||||
|
||||
printf "\n"
|
||||
|
||||
read -p "Do you need to set up your end to end (E2E) testing database? Answer yes if this is your first time running E2E tests on your local machine or you need to recreate your E2E test database. (y/n) " -n 1 -r
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue