-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (28 loc) · 1.28 KB
/
.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
32
33
language: php
php:
- 5.4
before_install:
- sudo apt-get update > /dev/null
install:
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
- sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
- sudo sed -i -e "/DocumentRoot/i\ServerName szachuje.dev" /etc/apache2/sites-available/default
- echo "127.0.0.1 szachuje.dev" | sudo tee -a /etc/hosts
- sudo sed -i -e "s/export APACHE_RUN_USER=.*/export APACHE_RUN_USER=travis/ ; s/export APACHE_RUN_GROUP=.*/export APACHE_RUN_GROUP=travis/" /etc/apache2/envvars
- sudo chown -R travis:travis /var/lock/apache2
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar
before_script:
- sudo /etc/init.d/apache2 restart
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- java -jar selenium-server-standalone-2.35.0.jar > /dev/null &
- sleep 5
script:
- composer self-update
- composer install -n --prefer-source
- app/console --env=test cache:clear
- bin/behat --no-snippets --no-paths --verbose
- app/console --env=test cache:clear
- bin/behat -p mobile --no-snippets --no-paths --verbose
- bin/phpspec run -fpretty --verbose