Skip to content

Commit

Permalink
fix: Try the unit test after installing the site.
Browse files Browse the repository at this point in the history
  • Loading branch information
cafuego committed Sep 21, 2022
1 parent 4d25f35 commit 89e85e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ script:
- docker exec -it -u root -w /srv/www $SITEID-site ./vendor/bin/phpcs -p --report=full --standard=phpcs.xml ./html/modules/custom
- docker exec -it -u root -w /srv/www $SITEID-site ./vendor/bin/phpcs -p --report=full --standard=phpcs.xml ./html/themes/custom

# Run unit tests.
- docker exec -it -u root -w /srv/www $SITEID-site mkdir -p /srv/www/html/sites/default/files/browser_output
- docker exec -it -u root -w /srv/www -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output $SITEID-site ./vendor/bin/phpunit --debug

# Install the site with existing config.
- docker exec -it $SITEID-site drush -y si --existing-config minimal install_configure_form.enable_update_status_emails=NULL
- docker exec -it $SITEID-site drush -y en dblog
Expand All @@ -91,7 +87,8 @@ script:
- docker exec -it -u root $SITEID-site mkdir -p /srv/www/html/build/logs
- docker exec -it -u root $SITEID-site chmod -R 777 /srv/www/html/build/logs

# Run all tests.
# Run unit tests.
- docker exec -it -u root -w /srv/www $SITEID-site mkdir -p /srv/www/html/sites/default/files/browser_output
- docker exec -it -u root -w /srv/www -e XDEBUG_MODE=coverage -e BROWSERTEST_OUTPUT_DIRECTORY=/srv/www/html/sites/default/files/browser_output -e DTT_BASE_URL=http://127.0.0.1 $SITEID-site ./vendor/bin/phpunit --debug

# Trying without chrome and the specialized ports.
Expand Down

0 comments on commit 89e85e3

Please sign in to comment.