2018-01-18 18:42:19 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
if [[ ${RUN_E2E} == 1 ]]; then
|
|
|
|
|
|
|
|
WP_SITE_URL="http://localhost:8080"
|
|
|
|
|
|
|
|
# Start xvfb to run the tests
|
|
|
|
export BASE_URL="$WP_SITE_URL"
|
|
|
|
export DISPLAY=:99.0
|
|
|
|
sh -e /etc/init.d/xvfb start
|
2019-03-19 11:14:42 +00:00
|
|
|
sleep 3
|
2018-01-18 18:42:19 +00:00
|
|
|
|
|
|
|
# Run the tests
|
|
|
|
npm test
|
|
|
|
fi
|