diff options
author | Simon Holywell <[email protected]> | 2018-01-02 15:17:06 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-02 15:17:06 +1000 |
commit | 10fd440f65f5a8082019c9d33514b548788f2219 (patch) | |
tree | c0cae4b2f0d63a2c6c9b89cd74f9f7a5e011e492 | |
parent | 934bf6d30b49857e2370a2c53a6bee380f96d603 (diff) |
Update .travis.yml
Use an env var as travis has a shim for composer tricking my bash into
thinking that the composer binary is available on the path. In reality it
is just a shim that prints a message to the console saying that composer
is not available on PHP 5.2.
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index d0034b0..10c4870 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,15 +5,17 @@ php: - 7.0 - 7.1 - hhvm +env: # important - please keep matrix: include: - php: 5.2 dist: precise + env: PHPV=52 - php: 5.3 dist: precise install: | - command -v composer; if [ `command -v composer` ]; then composer install; else curl -sSfL https://phar.phpunit.de/phpunit-4.phar -o ~/phpunit.phar; fi + if [ $PHPV != 52 ]; then composer install; else curl -sSfL https://phar.phpunit.de/phpunit-4.phar -o ~/phpunit.phar; fi script: | - if [ `command -v composer` ]; then X="composer run-script test --"; else X="~/phpunit.phar"; fi; $X --colors --coverage-text + if [ $PHPV != 52 ]; then X="composer run-script test --"; else X="~/phpunit.phar"; fi; $X --colors --coverage-text |