Skip to content

Commit

Permalink
[TEST] Invoke phpunit dependency instead of travis phpunit.phar
Browse files Browse the repository at this point in the history
phpunit.phar bundles dependencies, and travis does not allow control over which version of
phpunit is used.  This means phpunit 5.x is used in the PHP 7.x branch, which unfortunately
bundles symfony/yaml 3.x.

Symfony/yaml 3.x has a breaking change that is incompatible with 2.x, so the tests are split
between 7.x failing and 5.x passing, or vice versa.

So we need to use the phpunit dependency instead of Travis.  At least until 5.x is phased out
and we can cutover to symfony/yaml 3.x across the branches.
  • Loading branch information
polyfractal committed Mar 9, 2016
1 parent b966328 commit f9e0d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -45,7 +45,7 @@ before_script:
- php util/EnsureClusterAlive.php

script:
- phpunit $PHPUNIT_FLAGS
- vendor/bin/phpunit $PHPUNIT_FLAGS

after_script:
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi

0 comments on commit f9e0d99

Please sign in to comment.