Merge pull request #227 from yvesh/phpcs

Running phpcs check with travis on php 5.6
This commit is contained in:
Puneet Kala 2016-08-02 21:51:00 +05:30 committed by GitHub
commit 42fdd5b4cc
1 changed files with 21 additions and 6 deletions

View File

@ -1,10 +1,22 @@
language: php
php:
- 5.5
- 5.6
- 7.0
addons:
firefox: "47.0.1"
env:
global:
- RUN_PHPCS="no"
matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
env: RUN_PHPCS="yes"
- php: 7.0
sudo: true
addons:
firefox: "47.0.1"
allow_failures:
- php: 7.0
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y --force-yes apache2 libapache2-mod-fastcgi > /dev/null
@ -34,5 +46,8 @@ script:
# Build
- 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
- if [[ $RUN_PHPCS == "yes" ]]; then vendor/bin/phpcs --report=full --extensions=php -p --standard=tests/joomla-cms3/build/phpcs/Joomla ./src; fi