install_test.sh 624 B

12345678910111213141516171819
  1. #!/usr/bin/env sh
  2. set -ev
  3. mkdir --parents "${HOME}/bin"
  4. # PHPUnit install
  5. if [ ${TRAVIS_PHP_VERSION} '<' '5.6' ]; then
  6. PHPUNIT_PHAR=phpunit-old.phar
  7. else
  8. PHPUNIT_PHAR=phpunit.phar
  9. fi
  10. wget "https://phar.phpunit.de/${PHPUNIT_PHAR}" --output-document="${HOME}/bin/phpunit"
  11. chmod u+x "${HOME}/bin/phpunit"
  12. # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
  13. if [ "${COMPOSER_FLAGS}" = '--prefer-lowest' ]; then
  14. composer update --prefer-dist --no-interaction --prefer-stable --quiet
  15. fi
  16. composer update --prefer-dist --no-interaction --prefer-stable ${COMPOSER_FLAGS}