Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto56 committed Nov 18, 2016
1 parent 5b3f230 commit 4da8d53
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
set -e

# Create the environment.
./scripts/run.sh
#./scripts/run.sh

# Run the migration as described in the README.md
docker-compose exec drupal8 /bin/bash -c 'drush en -y my_migration'
docker-compose exec drupal8 /bin/bash -c 'drush cc drush'
docker-compose exec drupal8 /bin/bash -c 'drush migrate-status'
docker-compose exec drupal8 /bin/bash -c 'drush migrate-import --all'
# We will use docker exec instead of docker-compose exec because of
# https://github.com/docker/compose/issues/3379
docker exec "$(docker-compose ps -q drupal8)" /bin/bash -c 'drush en -y my_migration'
docker exec "$(docker-compose ps -q drupal8)" /bin/bash -c 'drush cc drush'
docker exec "$(docker-compose ps -q drupal8)" /bin/bash -c 'drush migrate-status'
docker exec "$(docker-compose ps -q drupal8)" /bin/bash -c 'drush migrate-import --all'

docker-compose exec drupal8 /bin/bash -c 'drush eval my_migration_test()'
docker exec "$(docker-compose ps -q drupal8)" /bin/bash -c 'drush eval "my_migration_test()"'

# Make sure we can restore Drupal 8 to its pristine state.
./scripts/restore-newly-installed.sh

0 comments on commit 4da8d53

Please sign in to comment.