-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
36 lines (27 loc) · 1.09 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
34
35
language: php
php:
- 5.4
before_install:
# apt-get installs
- sudo apt-get update &> /dev/null
- sudo apt-get install -y apache2 &> /dev/null
# configure apache : tip from https://gist.github.com/3123962
- sudo a2enmod actions &> /dev/null
- sudo a2enmod rewrite &> /dev/null
- sudo a2enmod headers &> /dev/null
- echo "ServerName localhost" | sudo tee -a /etc/apache2/httpd.conf &> /dev/null
- echo "export PATH=/home/vagrant/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars &> /dev/null
- cat .travis/phpconfig | sudo tee /etc/apache2/conf.d/phpconfig &> /dev/null
- cat .travis/virtualhost | sed -e "s~PATH~`pwd`~g" | sudo tee /etc/apache2/sites-available/default &> /dev/null
# restart apache
- sudo service apache2 restart &> /dev/null
before_script:
- cp .travis/phpunit.xml phpunit.xml
# composer
- curl -s https://getcomposer.org/installer | php
- php composer.phar install --dev --prefer-source --optimize-autoloader --no-interaction
script:
- ./bin/behat -f progress
- phpunit --stop-on-failure
after_failure:
- sudo cat /var/log/apache2/error.log