summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2018-01-02 16:29:17 +1000
committerGitHub <[email protected]>2018-01-02 16:29:17 +1000
commit828887e2a068083996aaf88b14180b3b829ee02b (patch)
treec8a36ca6ecc4aae6e27d3c9858638384f7989b62
parent97af027f63f499171e57dd49e0e29898bd741c16 (diff)
Update .travis.yml
-rw-r--r--.travis.yml11
1 files changed, 8 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index de3f6b4..720406e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,10 +17,15 @@ before_script: |
if [ "$PHPV" -ne 52 ]; then
composer install
else
- X="$HOME/.idiorm/bin"
+ export 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
+script: |
+ if [ "$PHPV" -ne 52 ]; then
+ XZ="composer run-script test --"
+ else
+ XZ="$X/phpunit"
+ fi
+ $XZ --colors --coverage-text