Skip to content

Commit

Permalink
tweak travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
schnittstabil committed May 26, 2017
1 parent 99e1dfb commit 9d0ab11
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
language: php

php:
- 5.6
- 7
- 7.0
- 7.1
- hhvm

sudo: false
matrix:
include:
- php: 5.6
env: QA=yes
- php: 7
- php: 7.1
- php: hhvm
- php: nightly
allow_failures:
- php: hhvm
- php: nightly

install:
- composer selfupdate
- composer install
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require codeclimate/php-test-reporter satooshi/php-coveralls; fi
- if [ "$QA" == "yes" ]; then composer global require --update-no-dev codeclimate/php-test-reporter:dev-master satooshi/php-coveralls; fi
- export PATH=$PATH:`composer global config bin-dir --absolute`

before_script:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then pecl install runkit; fi
- if [ "$QA" == "yes" ]; then pecl install runkit; fi

script:
- composer travis

after_success:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/test-reporter; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/coveralls -v; fi

matrix:
allow_failures:
- php: hhvm
- if [ "$QA" == "yes" ]; then coveralls -v; fi
- if [ "$QA" == "yes" ]; then test-reporter; fi

addons:
code_climate:
Expand Down

0 comments on commit 9d0ab11

Please sign in to comment.