install_test.sh 815 B

1234567891011121314151617181920212223
  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. # Coveralls client install
  13. wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar --output-document="${HOME}/bin/coveralls"
  14. chmod u+x "${HOME}/bin/coveralls"
  15. # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
  16. if [ "${COMPOSER_FLAGS}" = '--prefer-lowest' ]; then
  17. composer update --prefer-dist --no-interaction --prefer-stable --quiet
  18. fi
  19. composer update --prefer-dist --no-interaction --prefer-stable ${COMPOSER_FLAGS}