-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
33 lines (27 loc) · 1.12 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" ]
script: "./test.sh"
# Inspired from http://knpuniversity.com/screencast/question-answer-day/travis-ci
before_script:
- sudo apt-get update -qq
# Apache
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-imagick
- sudo sed -i -e "s,/var/www,$(pwd)/website,g" /etc/apache2/sites-available/default
- sudo sed -i -e "s,AllowOverride None,AllowOverride All,g" /etc/apache2/sites-available/default
- cat /etc/apache2/envvars
- sudo sed -i -e "s,www-data,$(whoami),g" /etc/apache2/envvars
- sudo a2enmod php5
- sudo /etc/init.d/apache2 stop
- sudo rm -rf /var/lock/apache2
- sudo /etc/init.d/apache2 start
# XVFB
- "export DISPLAY=:99.0"
- "Xvfb :99.0 -extension RANDR > /dev/null &"
# Window manager
- "sudo apt-get install fluxbox -y --force-yes"
- "fluxbox &"
# Selenium server
- "wget http://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar"
- "java -jar selenium-server-standalone-2.39.0.jar > /dev/null 2>/dev/null &"
# Firefox
- sudo apt-get install -y --force-yes firefox