32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2025-01-13 08:11:57 +00:00

Rework xvfb

Following https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services as default travis moved to Xenial from trusty since they last passed
This commit is contained in:
George Wilson 2019-08-12 18:43:07 +01:00 committed by wilsonge
parent 44b1683d18
commit 685435e87d
No known key found for this signature in database
GPG Key ID: EF81319318FC9D04

View File

@ -9,13 +9,20 @@ matrix:
fast_finish: true fast_finish: true
include: include:
- php: 5.5 - php: 5.5
dist: trusty
- php: 5.6 - php: 5.6
env: RUN_PHPCS="yes" env: RUN_PHPCS="yes"
services:
- xvfb
- php: 7.0 - php: 7.0
sudo: true sudo: true
addons: addons:
firefox: "47.0.1" firefox: '47.0.1'
services:
- xvfb
- php: 7.1 - php: 7.1
services:
- xvfb
- php: hhvm - php: hhvm
sudo: true sudo: true
dist: trusty dist: trusty
@ -29,6 +36,7 @@ matrix:
services: services:
- mysql - mysql
- postgresql - postgresql
- xvfb
allow_failures: allow_failures:
- php: hhvm - php: hhvm
@ -48,10 +56,10 @@ before_script:
- sudo sed -e "s?%PHPVERSION%?${TRAVIS_PHP_VERSION:0:1}?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 - git submodule update --init --recursive
- sudo service apache2 restart - sudo service apache2 restart
# Xvfb # Xvfb on trusty environments (PHP 5.5 and below)
- "export DISPLAY=:99.0" - if [[ $dist == "trusty" ]]; then export DISPLAY=:99.0; fi
- "sh -e /etc/init.d/xvfb start" - if [[ $dist == "trusty" ]]; then sh -e /etc/init.d/xvfb start; fi
- sleep 3 # give xvfb some time to start - if [[ $dist == "trusty" ]]; then sleep 3 ; fi # give xvfb some time to start
# Fluxbox # Fluxbox
- sudo apt-get install fluxbox -y --force-yes - sudo apt-get install fluxbox -y --force-yes
- fluxbox & - fluxbox &