forked from alexandresalome/behat-launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (35 loc) · 1.36 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
36
37
38
39
40
41
42
43
44
45
language: php
php: [ "5.5", "5.4" ]
script: "./test.sh"
before_script:
- sudo apt-get update -qq
- sudo apt-get install apache2 libapache2-mod-fastcgi
# PHP-FPM
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo a2enmod rewrite actions fastcgi alias
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
# configure apache virtual hosts
- sudo cp -f .travis.vhost.conf /etc/apache2/sites-available/default
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)/web?g" --in-place /etc/apache2/sites-available/default
- sudo service apache2 restart
# 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
# Config
- cp config.php.dist config.php
# Bower
- npm install -g bower
- bower install
# Grunt
- npm install -g grunt-cli
- npm install
- grunt