mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
17 lines
576 B
Bash
Executable file
17 lines
576 B
Bash
Executable file
#!/bin/bash
|
|
#ddev-generated
|
|
# Remove the line above if you don't want this file to be overwritten when you run
|
|
# ddev get julienloizelet/ddev-playwright
|
|
#
|
|
# This file comes from https://github.com/julienloizelet/ddev-playwright
|
|
#
|
|
cd /var/www/html || exit 1
|
|
cd "${PLAYWRIGHT_TEST_DIR}" || exit 1
|
|
|
|
export PLAYWRIGHT_BROWSERS_PATH=0
|
|
PRE="sudo -u pwuser PLAYWRIGHT_BROWSERS_PATH=0 "
|
|
|
|
$PRE yarn install
|
|
$PRE yarn playwright install --with-deps
|
|
# Conditionally copy an .env file if an example file exists
|
|
[ -f .env.example ] && [ ! -f .env ] && $PRE cp -n .env.example .env; exit 0
|