Skip to content

Commit

Permalink
add .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kovenant committed Aug 5, 2020
1 parent fdbc212 commit 86ccb58
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .travis.yml
@@ -0,0 +1,36 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

sudo: false

# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache

before_install:
- sudo pip install codecov

install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction

before_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
PHPUNIT_FLAGS="--coverage-clover=coverage.xml"
fi
script:
- ./vendor/bin/phpunit --verbose $PHPUNIT_FLAGS

after_success:
- codecov

0 comments on commit 86ccb58

Please sign in to comment.