Skip to content

Commit

Permalink
Add symfony 3.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemN committed Dec 9, 2015
1 parent 212e276 commit c6f027d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor
composer.lock
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6

sudo: false

cache:
directories:
- $HOME/.composer/cache/files

matrix:
fast_finish: true
include:
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
- php: 5.6
env: SYMFONY_VERSION='2.7.*'
- php: 5.6
env: SYMFONY_VERSION='2.8.*'

before_install:
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi

install: composer update $COMPOSER_FLAGS

script: phpunit
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@
}
],
"require": {
"symfony/framework-bundle": "2.*",
"php": ">=5.3.9",
"symfony/framework-bundle": "^2.3|^3.0",
"jms/cg": "^1.1"
},
"require-dev": {
"symfony/phpunit-bridge": "^2.7"
},
"autoload": {
"psr-0": { "JMS\\AopBundle": "" }
"psr-4": { "JMS\\AopBundle\\": "" }
},
"extra": {
"branch-alias": {
"dev-master": "1.1.x-dev"
}
},
"target-dir": "JMS/AopBundle"
}
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./../../../../../app/bootstrap.php.cache"
bootstrap="vendor/autoload.php"
>

<testsuites>
Expand Down

0 comments on commit c6f027d

Please sign in to comment.