summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2018-01-02 14:14:22 +1000
committerGitHub <[email protected]>2018-01-02 14:14:22 +1000
commit647b5d6fc5ce62ecfe56ed19ebc266ba0a51893e (patch)
treebc58a3d0bcaf8152fa2d34dfb1f16bc93ca1d73c
parent13bd35b6038980de40c6757698ade8d9c09798cc (diff)
Update .travis.yml
-rw-r--r--.travis.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 14d5497..0178c08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,17 +1,18 @@
language: php
php:
- - 5.2
- - 5.3
- 5.4
- 5.6
- 7.0
- 7.1
- hhvm
-install: "composer install"
-script: "composer run-script test -- --colors --coverage-text"
matrix:
include:
- php: 5.2
dist: precise
- php: 5.3
- dist: precise \ No newline at end of file
+ dist: precise
+install: "if [ `command -v composer` ]; 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"
+
+