diff --git a/.travis.yml b/.travis.yml index e7475ca..6697954 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,24 @@ language: php -php: - - 5.4 - - 5.3 -before_script: - - composer install --dev \ No newline at end of file +branches: + only: + - master +matrix: + include: + - php: 5.3 + env: SYMFONY_VERSION=2.8.* + - php: 7.0 + env: SYMFONY_VERSION=2.3.* + - php: 7.0 + env: SYMFONY_VERSION=2.8.* + - php: 7.0 + env: SYMFONY_VERSION=3.1.* + +before_install: + # Disable xdebug for improved performance + - phpenv config-rm xdebug.ini + # Prevent Travis throwing an out of memory error on PHP 5.3 + - if [[ $(phpenv version-name) == 5.3 ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/5.3/etc/conf.d/travis.ini; fi + +before_script: composer install --prefer-dist +script: vendor/bin/phpunit diff --git a/composer.json b/composer.json index eb9a53c..8dc139b 100644 --- a/composer.json +++ b/composer.json @@ -13,11 +13,17 @@ ], "require": { "php": ">=5.3.2", - "symfony/framework-bundle": "~2.0", + "symfony/browser-kit": "~2.0|~3.0", + "symfony/config": "~2.0|~3.0", + "symfony/dependency-injection": "~2.0|~3.0", + "symfony/form": "~2.0|~3.0", + "symfony/http-foundation": "~2.0|~3.0", + "symfony/http-kernel": "~2.0|~3.0", "jms/payment-core-bundle": "~1.0" }, "require-dev": { - "symfony/browser-kit": "*" + "phpunit/phpunit": "~4.8|~5.4", + "symfony/phpunit-bridge": "~2.7" }, "autoload": { "psr-0": { "JMS\\Payment\\PaypalBundle": "" } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 928f18e..f05b823 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -13,4 +13,8 @@ + + + +