2015-05-24 19:32:32 +00:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
2015-07-22 14:24:31 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- php: 5.6
|
2015-05-24 19:32:32 +00:00
|
|
|
before_script:
|
|
|
|
- sudo apt-get update -qq
|
2015-10-30 09:43:37 +00:00
|
|
|
- sudo apt-get install -y --force-yes apache2 libapache2-mod-fastcgi php5-curl php5-mysql php5-intl php5-gd > /dev/null
|
|
|
|
- sudo mkdir $(pwd)/.run
|
|
|
|
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- sudo sed -e "s,listen = 127.0.0.1:9000,listen = /tmp/php5-fpm.sock,g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- sudo sed -e "s,;listen.owner = nobody,listen.owner = $USER,g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- sudo sed -e "s,;listen.group = nobody,listen.group = $USER,g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- sudo sed -e "s,;listen.mode = 0660,listen.mode = 0666,g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- sudo sed -e "s,user = nobody,;user = $USER,g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- sudo sed -e "s,group = nobody,;group = $USER,g" --in-place ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
|
|
|
|
- cat ~/.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
|
|
|
|
- sudo cp -f tests/travis-ci-apache.conf /etc/apache2/sites-available/default
|
|
|
|
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- sudo service apache2 restart
|
2015-05-24 19:32:32 +00:00
|
|
|
# Xvfb
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
- sleep 3 # give xvfb some time to start
|
|
|
|
# Fluxbox
|
|
|
|
- sudo apt-get install fluxbox -y --force-yes
|
|
|
|
- fluxbox &
|
|
|
|
- sleep 3 # give fluxbox some time to start
|
2015-10-30 09:43:37 +00:00
|
|
|
# Composer
|
2015-09-30 17:29:14 +00:00
|
|
|
- composer install
|
2015-05-24 19:32:32 +00:00
|
|
|
|
|
|
|
script:
|
2015-11-01 07:44:16 +00:00
|
|
|
# Build
|
2016-02-01 12:36:56 +00:00
|
|
|
- mv jorobo.dist.ini jorobo.ini
|
2015-11-01 07:44:16 +00:00
|
|
|
- vendor/bin/robo build
|
2015-05-24 19:32:32 +00:00
|
|
|
- mv tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
|
2015-11-01 12:09:58 +00:00
|
|
|
- vendor/bin/robo run:tests --use-htaccess
|