Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
treffynnon committed Jan 2, 2018
1 parent 934bf6d commit 10fd440
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 10fd440

Please sign in to comment.