.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. language: php
  2. sudo: false
  3. matrix:
  4. include:
  5. - php: 5.4
  6. - php: 5.4
  7. env: 'COMPOSER_FLAGS="--prefer-lowest --prefer-stable"'
  8. - php: 5.5
  9. - php: 5.6
  10. - php: 7.0
  11. - php: 7.1
  12. - php: 7.2
  13. - php: hhvm
  14. dist: trusty
  15. allow_failures:
  16. - php: 5.4
  17. env: 'COMPOSER_FLAGS="--prefer-lowest --prefer-stable"'
  18. - php: hhvm
  19. fast_finish: true
  20. install: travis_retry composer update --no-interaction $COMPOSER_FLAGS
  21. script:
  22. - vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
  23. - '[[ $TRAVIS_PHP_VERSION = 7.2* ]] && make build -j 4 || true'
  24. after_success:
  25. - bash <(curl -s https://codecov.io/bash)
  26. before_deploy: make dist -j 4
  27. deploy:
  28. provider: releases
  29. api_key:
  30. secure: LL8koDM1xDqzF9t0URHvmMPyWjojyd4PeZ7IW7XYgyvD6n1H6GYrVAeKCh5wfUKFbwHoa9s5AAn6pLzra00bODVkPTmUH+FSMWz9JKLw9ODAn8HvN7C+IooxmeClGHFZc0TfHfya8/D1E9C1iXtGGEoE/GqtaYq/z0C1DLpO0OU=
  31. file_glob: true
  32. file: dist/psysh-*.tar.gz
  33. skip_cleanup: true
  34. on:
  35. tags: true
  36. repo: bobthecow/psysh
  37. condition: $TRAVIS_PHP_VERSION = 7.2*