Skip to content

Commit 55329cb

Browse files
authored
yarn install drupal core during poser (#8)
* yarn install drupal core during poser * Also set required env vars
1 parent 20fb027 commit 55329cb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

commands/web/phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ if ! command -v phpunit >/dev/null; then
1212
echo "phpunit is not available. You may need to 'ddev composer install'"
1313
exit 1
1414
fi
15-
phpunit --printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" --bootstrap $PWD/$DDEV_DOCROOT/core/tests/bootstrap.php --testdox web/modules/custom "$@"
15+
phpunit --printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" --bootstrap $PWD/$DDEV_DOCROOT/core/tests/bootstrap.php --testdox $DDEV_DOCROOT/modules/custom "$@"

commands/web/poser

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ export COMPOSER=composer.contrib.json
1212
.ddev/commands/web/expand-composer-json "$DDEV_PROJECT_NAME"
1313
composer install
1414
rm composer.contrib.json composer.contrib.lock
15+
yarn --cwd $DDEV_DOCROOT/core install
16+
touch $DDEV_DOCROOT/core/.env

config.contrib.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#ddev-generated
22
## Command provided by https://github.com/ddev/ddev-drupal-contrib
3+
web_environment:
4+
- SIMPLETEST_DB=mysql://db:db@db/db
5+
- SIMPLETEST_BASE_URL=http://web
6+
- BROWSERTEST_OUTPUT_DIRECTORY=/tmp
7+
- BROWSERTEST_OUTPUT_BASE_URL=${DDEV_PRIMARY_URL}
38
hooks:
49
post-start:
510
- exec-host: |

0 commit comments

Comments
 (0)