summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2018-01-02 16:22:50 +1000
committerGitHub <[email protected]>2018-01-02 16:22:50 +1000
commit97af027f63f499171e57dd49e0e29898bd741c16 (patch)
tree312009a08e5a88c1ac8a7744228f2482f396ea23
parent0e3ab57101a978d2468de634bec8be795198a056 (diff)
Update .travis.yml
-rw-r--r--.travis.yml17
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