install_test.sh 834 B

123456789101112131415161718192021222324
  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-4.8.phar
  7. else
  8. PHPUNIT_PHAR=phpunit-5.7.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 these issues are resolved:
  16. # https://github.com/composer/composer/issues/5355
  17. # https://github.com/composer/composer/issues/5030
  18. composer update --prefer-dist --no-interaction --prefer-stable --quiet --ignore-platform-reqs
  19. composer update --prefer-dist --no-interaction --prefer-stable ${COMPOSER_FLAGS}