Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Avoid using PHPunit from vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jan 26, 2017
1 parent 926156f commit f55843e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ before_install:

install: composer update --prefer-dist $COMPOSER_FLAGS

before_script: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
before_script:
- mv vendor/phpunit ./phpunit
- composer dump-autoload
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh

script:
- vendor/bin/simple-phpunit
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/symfony-cmf/testing/bin/server & fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then mv ./phpunit vendor/phpunit; composer dump-autoload; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/behat; fi

notifications:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"symfony-cmf/testing": "^2.0",
"symfony/phpunit-bridge": "^3.2",
"doctrine/phpcr-odm": "^1.3",
"behat/behat": "^3.0",
"behat/behat": "^3.0.5",
"behat/web-api-extension" : "^1.0@dev",
"behat/symfony2-extension": "^2.0",
"matthiasnoback/symfony-dependency-injection-test": "~0.6",
Expand Down

0 comments on commit f55843e

Please sign in to comment.