32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-11-15 17:17:08 +00:00
weblinks/.travis.yml
Tito Alvarez fc32eea69e Improved Travis system tests including multiple PHP versions and PHP 7 support
* Added PHP 7 support
* Improved test system including multiple PHP versions
* Removed unused php extensions
* Improved Travis script readability
2016-07-31 09:33:59 +02:00

39 lines
1.2 KiB
YAML

language: php
php:
- 5.5
- 5.6
- 7.0
addons:
firefox: "47.0.1"
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y --force-yes apache2 libapache2-mod-fastcgi > /dev/null
- sudo mkdir $(pwd)/.run
- chmod a+x tests/travis-php-fpm.sh
- sudo ./tests/travis-php-fpm.sh $USER $(phpenv version-name)
- 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
- sudo sed -e "s?%PHPVERSION%?${TRAVIS_PHP_VERSION:0:1}?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:
# Build
- mv jorobo.dist.ini jorobo.ini
- vendor/bin/robo build
- mv tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
- vendor/bin/robo run:tests --use-htaccess