sterntours/trunk/_vendor/gedmo/doctrine-extensions/.travis.yml
Kevin Adametz 33458b2ca3 Update
2020-03-07 19:46:02 +01:00

48 lines
1.3 KiB
YAML

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