diff options
Diffstat (limited to 'vendor/sabre/dav/.travis.yml')
-rw-r--r-- | vendor/sabre/dav/.travis.yml | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/vendor/sabre/dav/.travis.yml b/vendor/sabre/dav/.travis.yml index 9c98702f0..a9189c981 100644 --- a/vendor/sabre/dav/.travis.yml +++ b/vendor/sabre/dav/.travis.yml @@ -1,28 +1,35 @@ language: php php: - - 5.3.3 - - 5.3 - - 5.4 - 5.5 - 5.6 - - hhvm + - 7 -matrix: - allow_failures: - - php: 5.6 - - php: hhvm +env: + matrix: + - LOWEST_DEPS="" TEST_DEPS="" + - LOWEST_DEPS="--prefer-lowest" TEST_DEPS="tests/Sabre/" services: - mysql + - postgresql + +sudo: false before_script: - - mysql -e 'create database sabredav' - - composer self-update - - composer install --prefer-source -# - echo "zend.enable_gc=0" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` + - mysql -e 'create database sabredav_test' + - psql -c "create database sabredav_test" -U postgres + - psql -c "create user sabredav with PASSWORD 'sabredav';GRANT ALL PRIVILEGES ON DATABASE sabredav_test TO sabredav" -U postgres + - phpenv config-rm xdebug.ini; true + # - composer self-update + - composer update --prefer-dist $LOWEST_DEPS + +# addons: +# postgresql: "9.5" script: - - phpunit --configuration tests/phpunit.xml - - cp tests/composer.vobject3.json composer.json - - composer update --no-dev - - phpunit --configuration tests/phpunit.xml + - ./bin/phpunit --configuration tests/phpunit.xml.dist $TEST_DEPS + - ./bin/sabre-cs-fixer fix lib/ --dry-run --diff + +cache: + directories: + - $HOME/.composer/cache |