forked from stfalcon/fwdays
-
Notifications
You must be signed in to change notification settings - Fork 2
/
run-selenium.sh
15 lines (15 loc) · 948 Bytes
/
run-selenium.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
export ADDITIONAL_PATH=`php -i | grep -F --color=never 'Scan this dir for additional .ini files'`
echo 'xdebug.max_nesting_level=9999' | sudo tee ${ADDITIONAL_PATH:42}/symfony2.ini
export MINK_EXTENSION_PARAMS='base_url=http://fwdays.dev/app_test.php'
app/console doctrine:database:create --env=test > /dev/null
app/console doctrine:schema:create --env=test > /dev/null
app/console doctrine:fixtures:load --no-interaction --env=test > /dev/null
app/console cache:warmup --env=test > /dev/null
sh -e /etc/init.d/xvfb start
export DISPLAY=:99
curl http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar > selenium.jar
java -jar selenium.jar > /dev/null &
sleep 5