php52_install_dependencies.sh 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # remove any existing phpunit packages
  3. pear uninstall -n pear.phpunit.de/PHPUnit
  4. pear uninstall -n pear.phpunit.de/PHP_CodeCoverage
  5. pear uninstall -n pear.phpunit.de/PHPUnit_MockObject
  6. pear uninstall -n pear.phpunit.de/File_Iterator
  7. pear uninstall -n pear.phpunit.de/Text_Template
  8. pear uninstall -n pear.phpunit.de/PHP_Timer
  9. # Install PHPUnit from git (only possibility for PHPUnit 3.6)
  10. cd tests
  11. mkdir phpunit && cd phpunit
  12. # last versions without anonymous functions
  13. git clone --depth=1 --branch=3.6.12 git://github.com/sebastianbergmann/phpunit.git
  14. git clone --depth=1 --branch=1.1 git://github.com/sebastianbergmann/dbunit.git
  15. git clone --depth=1 --branch=1.3.2 git://github.com/sebastianbergmann/php-file-iterator.git
  16. git clone --depth=1 --branch=1.1.2 git://github.com/sebastianbergmann/php-text-template.git
  17. git clone --depth=1 --branch=1.1 git://github.com/sebastianbergmann/php-code-coverage.git
  18. git clone --depth=1 --branch=1.1.4 git://github.com/sebastianbergmann/php-token-stream.git
  19. git clone --depth=1 --branch=1.0.3 git://github.com/sebastianbergmann/php-timer.git
  20. git clone --depth=1 --branch=1.1 git://github.com/sebastianbergmann/phpunit-mock-objects.git
  21. git clone --depth=1 --branch=1.1 git://github.com/sebastianbergmann/phpunit-selenium.git
  22. git clone --depth=1 --branch=1.0.0 git://github.com/sebastianbergmann/phpunit-story.git
  23. git clone --depth=1 --branch=1.1.1 git://github.com/sebastianbergmann/php-invoker.git
  24. sed -i 's/@package_version@/3.6.12/g' phpunit/PHPUnit/Runner/Version.php
  25. cat phpunit/PHPUnit/Runner/Version.php
  26. cd phpunit
  27. php -d include_path='.:../phpunit/:../dbunit/:../php-code-coverage/:../php-file-iterator/:../php-invoker/:../php-text-template/:../php-timer:../php-token-stream:../phpunit-mock-objects/:../phpunit-selenium/:../phpunit-story/:/usr/local/lib/php' ../phpunit/phpunit.php --version