forked from minkphp/MinkSelenium2Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (23 loc) · 877 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: php
php:
- 5.3
- 5.4
before_script:
- export DISPLAY=:99
- export WEB_FIXTURES_HOST=http://localhost
- export WEB_FIXTURES_BROWSER=firefox
# Selenium first, give it time to boot..
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.24.1.jar
- java -jar selenium-server-standalone-2.24.1.jar > /dev/null &
# Use this command to see Selenium STDOUT for debugging
# - java -jar selenium-server-standalone-2.24.1.jar &
# Install deps
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
- sudo apt-get update
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5
- sudo sed -i -e "s,/var/www,$(pwd)/vendor/behat/mink/tests/Behat/Mink/Driver/web-fixtures,g" /etc/apache2/sites-available/default
- sudo /etc/init.d/apache2 restart
- sh -e /etc/init.d/xvfb start
- sleep 5
script: phpunit -v