Skip to content

Commit

Permalink
feature #890 Enabled checking the PHP code syntax (TomasVotruba)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Enabled checking the PHP code syntax

Ref #721

Commits
-------

28b6291 enable cs check
  • Loading branch information
javiereguiluz committed Feb 14, 2016
2 parents 6c6b9bc + 28b6291 commit 34d260d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

sudo: false
Expand Down Expand Up @@ -35,14 +34,14 @@ matrix:
env: SYMFONY_VERSION=2.8.*
- php: 5.6
env: TWIG_VERSION="2.0.x-dev"
- php: 7.0
env: PHP_CS=yes
allow_failures:
- php: hhvm
- env: TWIG_VERSION="2.0.x-dev"

before_install:
- if [[ "$TRAVIS_PHP_VERSION" =~ 5.3 ]] && [[ "$COMPOSER_FLAGS" != "--prefer-lowest" ]]; then export PHP_CS="no"; fi;
- if [[ "SYMFONY_VERSION" == "2.8.*" || "SYMFONY_VERSION" == "3.0.*" ]]; then export SYMFONY_DEPRECATIONS_HELPER="strict"; fi;
- if [[ "$PHP_CS" == "yes" ]]; then mv $HOME/.app/cache/.php_cs.cache ./.php_cs.cache 2>/dev/null || true; fi;
- if [[ "$SYMFONY_VERSION" = "" ]] && [[ "$TWIG_VERSION" = "" ]] && [[ "$TRAVIS_PHP_VERSION" =~ 5.[45] ]] && [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export skip="yes"; fi;
- if [[ "$skip" != "yes" ]]; then composer selfupdate; fi
- if [[ "$skip" != "yes" && "$SYMFONY_VERSION" != "" ]]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
Expand Down

0 comments on commit 34d260d

Please sign in to comment.