language: php sudo: false matrix: include: - php: 5.4 env: phpunit_exclude_groups=datetimeinterface dependencies=lowest - php: 5.5 - php: 5.6 - php: 7.0 - php: 7.1 - php: 7.1 env: dependencies=lowest - php: 7.2 env: dependencies=lowest cache: directories: - $HOME/.composer/cache services: mongodb before_install: - if [[ "$TRAVIS_PHP_VERSION" = 5.* ]]; then echo 'extension=mongo.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi - if [[ "$TRAVIS_PHP_VERSION" != 5.* ]]; then echo 'extension=mongodb.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi - if [[ "$TRAVIS_PHP_VERSION" != 5.* ]]; then cp composer7.json composer.json; fi install: - | if [[ "$dependencies" = "lowest" ]]; then composer update --prefer-lowest --prefer-stable -n else composer install --prefer-dist fi script: - | if [[ ! $phpunit_exclude_groups ]]; then bin/phpunit -c tests/ else bin/phpunit -c tests/ --exclude-group $phpunit_exclude_groups fi notifications: email: - gediminas.morkevicius@gmail.com - developers@atlantic18.com