tmp

parent 3082c81b
#!/bin/bash
set -ex
function run_selenium() {
if ! docker inspect --type=container enough_selenium > /dev/null 2>&1 ; then
docker run --rm --name enough_selenium -d selenium/standalone-firefox:2.53.1-beryllium
fi
}
function kill_selenium() {
docker rm -f enough_selenium || true
}
trap "kill_selenium" EXIT
function run_tests() {
run_selenium
docker build -t enough_ci:latest ./
docker run --rm -e TRAVIS=true enough_ci:latest /opt/vendor/bin/phpunit --bootstrap /opt/core/tests/bootstrap.php --fail-on-warning --configuration phpunit.xml
docker run --link enough_selenium:selenium --rm enough_ci:latest /opt/vendor/bin/phpunit --bootstrap /opt/core/tests/bootstrap.php --fail-on-warning --configuration phpunit.integration.xml
}
run_tests
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment