install_dependencies.sh 829 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. echo $TRAVIS_PHP_VERSION;
  3. if [ "$TRAVIS_PHP_VERSION" = "5.2" ]; then
  4. # To install DbUnit, we have to install everything
  5. pear channel-discover pear.phpunit.de
  6. pear channel-discover pear.symfony-project.com
  7. pear update-channels
  8. # remove any existing phpunit packages
  9. pear uninstall -n pear.phpunit.de/PHPUnit
  10. pear uninstall -n pear.phpunit.de/PHP_CodeCoverage
  11. pear uninstall -n pear.phpunit.de/PHPUnit_MockObject
  12. pear uninstall -n pear.phpunit.de/File_Iterator
  13. pear uninstall -n pear.phpunit.de/Text_Template
  14. pear uninstall -n pear.phpunit.de/PHP_Timer
  15. pear uninstall -n pear.symfony-project.com/YAML
  16. # Install
  17. pear install -o pear.phpunit.de/PHPUnit
  18. pear install pear.phpunit.de/DbUnit
  19. else
  20. composer install --no-interaction --prefer-source --dev
  21. fi