mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-28 10:20:03 +02:00
cbdb33b243
- 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
37 lines
692 B
YAML
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
|