mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-11-11 15:51:05 +00:00
41 lines
2.0 KiB
YAML
41 lines
2.0 KiB
YAML
language: php
|
|
php:
|
|
- 5.5
|
|
- 5.6
|
|
matrix:
|
|
allow_failures:
|
|
- php: 5.6
|
|
before_script:
|
|
- sudo apt-get update -qq
|
|
- 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
|
|
# 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
|
|
# Composer
|
|
- composer install
|
|
|
|
script:
|
|
- mv tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
|
|
- vendor/bin/robo run:tests true
|