Skip to content

Commit

Permalink
minor #623 Tweaked Travis CI configuration now that Symfony 2.8, 3.0 …
Browse files Browse the repository at this point in the history
…and PHP 7.0 are released (javiereguiluz)

This PR was squashed before being merged into the master branch (closes #623).

Discussion
----------

Tweaked Travis CI configuration now that Symfony 2.8, 3.0 and PHP 7.0 are released

Commits
-------

5668a79 Tweaked Travis CI configuration now that Symfony 2.8, 3.0 and PHP 7.0 are released
  • Loading branch information
javiereguiluz committed Dec 9, 2015
2 parents 45b0e1f + 5668a79 commit ff79338
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,35 @@ matrix:
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.8.*@dev SYMFONY_DEPRECATIONS_HELPER=strict
env: SYMFONY_VERSION=2.8.*
- php: 5.6
env: SYMFONY_VERSION="3.0.x-dev as 2.8" SYMFONY_DEPRECATIONS_HELPER=strict
env: SYMFONY_VERSION=3.0.*
- php: 5.6
env: TWIG_VERSION="2.0.x-dev"
allow_failures:
- php: hhvm
- env: SYMFONY_VERSION=2.8.*@dev
- env: SYMFONY_VERSION="3.0.x-dev as 2.8"
- env: TWIG_VERSION="2.0.x-dev"

before_install:
- if [[ "$TRAVIS_PHP_VERSION" =~ 5.3 ]] && [[ "$COMPOSER_FLAGS" != "--prefer-lowest" ]]; then export PHP_CS="yes"; fi;
- 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;
- if [[ "$skip" != "yes" && "$TWIG_VERSION" != "" ]]; then composer require "twig/twig:${TWIG_VERSION}" --no-update; fi;
- if [[ "$skip" != "yes" && "$SYMFONY_VERSION" != "2.7.*" && "$TRAVIS_PHP_VERSION" != 7.0 && "$TRAVIS_PHP_VERSION" != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
- if [[ "$skip" != "yes" && "$SYMFONY_VERSION" != "2.8.*" && "$TRAVIS_PHP_VERSION" != 7.0 && "$TRAVIS_PHP_VERSION" != hhvm ]]; then phpenv config-rm xdebug.ini; fi;

install:
- if [[ "$PHP_CS" == "yes" ]]; then curl http://get.sensiolabs.org/php-cs-fixer.phar -o php-cs-fixer; fi;
- if [[ "$skip" != "yes" ]]; then composer update --prefer-dist --no-interaction $COMPOSER_FLAGS; fi
- if [[ "$skip" != "yes" && "$SYMFONY_VERSION" == "2.7.*" ]]; then composer require --dev satooshi/php-coveralls:~0.6; fi
- if [[ "$skip" != "yes" && "$TRAVIS_PHP_VERSION" == 7.0 ]]; then composer require --dev satooshi/php-coveralls:~0.6; fi

script:
- if [[ "$skip" != "yes" && "$SYMFONY_VERSION" == "2.7.*" ]]; then phpunit --coverage-text --coverage-clover build/logs/clover.xml; else if [[ "$skip" != "yes" ]]; then phpunit; fi; fi
- if [[ "$skip" != "yes" && "$TRAVIS_PHP_VERSION" == 7.0 ]]; then phpunit --coverage-text --coverage-clover build/logs/clover.xml; else if [[ "$skip" != "yes" ]]; then phpunit; fi; fi
- if [[ "$skip" = "yes" ]]; then echo "Skipping matrix entry for pull requests"; fi
- if [[ "$PHP_CS" == "yes" ]]; then php php-cs-fixer --no-interaction --dry-run --diff -v fix; fi;
- if [[ "$PHP_CS" == "yes" ]]; then mv ./.php_cs.cache $HOME/.app/cache/.php_cs.cache; fi;

after_success: |
if [[ "$SYMFONY_VERSION" == "2.7.*" ]]; then php vendor/bin/coveralls -v --config .coveralls.yml; fi;
if [[ "$TRAVIS_PHP_VERSION" == 7.0 ]]; then php vendor/bin/coveralls -v --config .coveralls.yml; fi;

0 comments on commit ff79338

Please sign in to comment.