diff --git a/.travis.yml b/.travis.yml index 107a046..c36215d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,33 @@ language: php +sudo: false + +cache: + directories: + - $HOME/.composer/cache/files + php: - 5.3 + - 5.4 + # 5.5 and 5.6 are already covered by the jobs running against specific Symfony versions. no need to duplicate them here + - 7.0 + - hhvm + +matrix: + include: + # force testing against Symfony LTS versions + - php: 5.5 + env: SYMFONY_VERSION=2.3.* + - php: 5.6 + env: SYMFONY_VERSION=2.7.* + # Test against lowest dependencies + - php: 5.6 + env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' -env: - - SYMFONY_VERSION=2.3.* - - SYMFONY_VERSION=2.4.* - - SYMFONY_VERSION=2.5.* +before_install: + - if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi -before_script: - - composer self-update - - composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update - - composer install --dev --prefer-source +install: + - composer update $COMPOSER_FLAGS script: phpunit --coverage-text diff --git a/composer.json b/composer.json index 3dd8269..8c3d04d 100755 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "symfony/framework-bundle": "~2.3" }, "require-dev": { - "phpunit/phpunit": "~3.7" + "symfony/phpunit-bridge": "~2.7", + "phpunit/phpunit": "~4.5" }, "autoload": { "psr-4": { diff --git a/tests/DependencyInjection/KeenIOExtensionTest.php b/tests/DependencyInjection/KeenIOExtensionTest.php index 97481bc..16dbf33 100644 --- a/tests/DependencyInjection/KeenIOExtensionTest.php +++ b/tests/DependencyInjection/KeenIOExtensionTest.php @@ -6,13 +6,10 @@ use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; -use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; class KeenIOExtensionTest extends \PHPUnit_Framework_TestCase { /** - * QPush Extension - * * @var KeenIOExtension */ private $extension;