-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (25 loc) · 1.04 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
language: php
php:
- 5.4
before_install:
##############################################################################
# Setup apache2
##############################################################################
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-mysql php5-sqlite > /dev/null
# Replace basedir in virtual host config
- sed 's?%basedir%?'`pwd`'?' .travis/apache/virtual.host > .travis/apache/vhost
# Define virtual host
- sudo mv .travis/apache/vhost /etc/apache2/sites-available/travistest
# Dump virtual host config to see if there are any errors
# - cat /etc/apache2/sites-available/travistest
- echo "127.0.0.1 travistest.loc" | sudo tee -a /etc/hosts
# View hosts file to check that we have everything correctly set
# - cat /etc/hosts
- sudo a2enmod rewrite
- sudo a2ensite travistest
- sudo /etc/init.d/apache2 restart
before_script:
- sudo ./composer.phar install
- curl http://travistest.loc/test_5_3.php
- curl http://travistest.loc/test_5_4.php
script: phpunit tests/