diff options
author | Simon Holywell <[email protected]> | 2018-01-02 16:22:50 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-02 16:22:50 +1000 |
commit | 97af027f63f499171e57dd49e0e29898bd741c16 (patch) | |
tree | 312009a08e5a88c1ac8a7744228f2482f396ea23 | |
parent | 0e3ab57101a978d2468de634bec8be795198a056 (diff) |
Update .travis.yml
-rw-r--r-- | .travis.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 81d92bf..de3f6b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,14 @@ matrix: env: PHPV=52 - php: 5.3 dist: precise -install: | - if [ "$PHPV" -ne 52 ]; then composer install; else curl -sSfL https://phar.phpunit.de/phpunit-4.phar -o ~/phpunit.phar; fi -script: | - if [ "$PHPV" -ne 52 ]; then X="composer run-script test --"; else X="~/phpunit.phar"; fi; $X --colors --coverage-text - - +before_script: | + if [ "$PHPV" -ne 52 ]; then + composer install + else + X="$HOME/.idiorm/bin" + mkdir -p "$X" + curl -sSfL https://phar.phpunit.de/phpunit-4.phar -o "$X/phpunit" + chmod +x "$X/phpunit" + export PATH="$X:$PATH" + fi +script: phpunit --colors --coverage-text |