language: php

php:
  - 7.1
  - 7.2

services: mongodb

before_install:
  - if [[ $TRAVIS_PHP_VERSION != 7.2 ]]; then pecl install mongodb; fi
  - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
  - composer install --no-interaction

script:
  - vendor/bin/phpcs
  - phpunit --testsuite unit -c phpunit.xml.dist
  - phpunit --testsuite integration

after_script:
  - php vendor/bin/coveralls -v

language: php

php:
  - 7.1
  - 7.2

services: mongodb

before_install:
  - if [[ $TRAVIS_PHP_VERSION != 7.2 ]]; then pecl install mongodb; fi
  - echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
  - composer install --no-interaction

script:
  - vendor/bin/phpcs
  - vendor/bin/phpunit -c phpunit.xml.dist

after_script:
  - php vendor/bin/coveralls -v

Allow integration testes to be accounted on coverage results
Allow integration testes to be accounted on coverage results
