Skip to content

Commit

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

0 comments on commit 97af027

Please sign in to comment.