Skip to content

Commit

Permalink
Fix drush tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Mar 8, 2024
1 parent 1ccf79b commit bac7ec7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions tests/10/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ run_action() {
make "${@}" -f /usr/local/bin/actions.mk
}

echo -n "Checking drush... "
drush version --format=yaml
echo "OK"

echo -n "Checking environment variables... "
env | grep -q ^DOCROOT_SUBDIR=
env | grep -q ^DRUPAL_VERSION=
Expand All @@ -52,6 +48,10 @@ COMPOSER_MEMORY_LIMIT=-1 composer install -n
composer require drush/drush
composer require drupal/redis

echo -n "Checking drush... "
drush version --format=yaml
echo "OK"

cd "${DRUPAL_ROOT}"

run_action files-import source="${FILES_ARCHIVE_URL}"
Expand Down
10 changes: 5 additions & 5 deletions tests/7/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ run_action() {
make "${@}" -f /usr/local/bin/actions.mk
}

echo -n "Checking drush... "
drush version --format=yaml
echo "OK"

echo -n "Checking environment variables... "
env | grep -q ^DOCROOT_SUBDIR=
env | grep -q ^DRUPAL_VERSION=
Expand All @@ -58,7 +54,11 @@ cd "${DRUPAL_ROOT}"
run_action files-import source="${FILES_ARCHIVE_URL}"
run_action init-drupal

drush si -y --db-url="${DB_DRIVER}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}"
echo -n "Checking drush... "
drush version --format=yaml
echo "OK"

drush si -vvv -y --db-url="${DB_DRIVER}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}"
drush en varnish redis -y --quiet

run_action cache-clear
Expand Down

0 comments on commit bac7ec7

Please sign in to comment.