Skip to content

Commit

Permalink
Support for Symfony 3
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Oct 3, 2016
1 parent ed66e95 commit beae408
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
27 changes: 22 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
language: php
php:
- 5.4
- 5.3

before_script:
- composer install --dev
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
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "" }
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
<server name="API_PASSWORD" value="1283340321" />
<server name="API_SIGNATURE" value="A93vj6VJ.ZIRNjbI6GFgi4N2Km.5ATLs-EinlyWk2htEGX0xc3L8YIBo" />
</php>

<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
</php>
</phpunit>

0 comments on commit beae408

Please sign in to comment.