weblinks/.travis.yml

60 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2017-08-31 23:11:19 +00:00
# Forces new Travis-CI Infrastructure
sudo: false
language: php
2017-08-31 23:11:19 +00:00
addons:
chrome: stable
apt:
packages:
- xvfb
- fluxbox
env:
global:
- RUN_PHPCS="no"
2015-07-22 14:24:31 +00:00
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
env: RUN_PHPCS="yes"
2016-05-21 19:55:51 +00:00
- php: 7.0
sudo: true
- php: 7.1
- php: hhvm
sudo: true
dist: trusty
group: edge # Until the next stable image update sometime after 2016-12-01
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
services:
- mysql
- postgresql
allow_failures:
- php: hhvm
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# Composer
- composer install
2017-08-31 23:19:20 +00:00
- fluxbox &
- sleep 3
script:
# Build
2016-02-01 12:36:56 +00:00
- mv jorobo.dist.ini jorobo.ini
- vendor/bin/robo build
# System tests (Codeception)
- mv tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
- vendor/bin/robo run:tests --use-htaccess
# Run phpcs on PHP 5.6 against weblinks source
2017-01-14 08:16:31 +00:00
- if [[ $RUN_PHPCS == "yes" ]]; then vendor/bin/phpcs --report=full --extensions=php -p --standard=tests/joomla/build/phpcs/Joomla ./src; fi