Skip to content

Commit

Permalink
Add Travis CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Aug 5, 2018
1 parent 7fb6de3 commit f9e23e3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly

matrix:
allow_failures:
- php: nightly
fast_finish: true

cache:
directories:
- $HOME/.composer/cache

install:
- travis_retry composer update --no-interaction --no-progress --no-suggest --prefer-dist

script:
- composer test

after_script:
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]
then
travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
fi

0 comments on commit f9e23e3

Please sign in to comment.