KnpMarkdownBundle/.travis.yml
Christophe Coevoet cbdb33b243 Improve the Travis setup
- use the container-based infrastructure
- persist the composer download cache between builds
- disallow failures on PHP 7 and HHVM
- add testing against lowest bounds of dependencies
- add testing against dev version of dependencies
2015-09-29 16:52:27 +02:00

37 lines
692 B
YAML

language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
include:
# Test against lowest bounds of dependencies to ensure they are right
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
# Test against dev versions of dependencies
- php: 5.6
env: deps=dev
before_install:
- if [ "$deps" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
install:
- composer update $COMPOSER_FLAGS
script: phpunit --coverage-text
notifications:
email:
- travis@knplabs.com