19 lines
320 B
Bash
Executable File
19 lines
320 B
Bash
Executable File
#!/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
|
|
sleep 3
|
|
|
|
# Compile and minify CSS and JS before running test
|
|
grunt css
|
|
grunt js
|
|
|
|
# Run the tests
|
|
npm test
|
|
fi
|