php52_install_dependencies.sh 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. git clone git://github.com/sebastianbergmann/phpunit.git
  13. git clone git://github.com/sebastianbergmann/dbunit.git
  14. git clone git://github.com/sebastianbergmann/php-file-iterator.git
  15. git clone git://github.com/sebastianbergmann/php-text-template.git
  16. git clone git://github.com/sebastianbergmann/php-code-coverage.git
  17. git clone git://github.com/sebastianbergmann/php-token-stream.git
  18. git clone git://github.com/sebastianbergmann/php-timer.git
  19. git clone git://github.com/sebastianbergmann/phpunit-mock-objects.git
  20. git clone git://github.com/sebastianbergmann/phpunit-selenium.git
  21. git clone git://github.com/sebastianbergmann/phpunit-story.git
  22. git clone git://github.com/sebastianbergmann/php-invoker.git
  23. # last versions without anonymous functions
  24. cd dbunit && git checkout 1.1 && cd ..
  25. cd php-code-coverage && git checkout 1.1 && cd ..
  26. cd php-file-iterator && git checkout 1.3.2 && cd ..
  27. cd php-invoker && git checkout 1.1.1 && cd ..
  28. cd php-text-template && git checkout 1.1.2 && cd ..
  29. cd php-timer && git checkout 1.0.3 && cd ..
  30. cd php-token-stream && git checkout 1.1.4 && cd ..
  31. cd phpunit && git checkout 3.6.12 && cd ..
  32. cd phpunit-mock-objects && git checkout 1.1 && cd ..
  33. cd phpunit-selenium && git checkout 1.1 && cd ..
  34. cd phpunit-story && git checkout 1.0.0 && cd ..
  35. sed -i 's/@package_version@/3.6.12/g' phpunit/PHPUnit/Runner/Version.php
  36. cat phpunit/PHPUnit/Runner/Version.php
  37. cd phpunit
  38. 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
  39. cd ..
  40. cd ..
  41. # memcache 2.1.0 is the last version to support the php 5.2 branch
  42. pecl download memcached-2.1.0
  43. tar zxvf memcached*.tgz && cd memcached*
  44. make clean
  45. printf "\n" | phpize
  46. ./configure --with-libmemcached-dir=/usr/local && make && make install
  47. printf "\n" | pecl uninstall memcache
  48. printf "\n" | pecl install memcache