.travis.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. language: php
  2. env:
  3. global:
  4. - ZIPALIGN_INSTALL=false
  5. - COVERAGE=false
  6. - PHPUNIT_FLAGS="-v -c phpunit.xml --testsuite only_fast_tests"
  7. matrix:
  8. include:
  9. - os: linux
  10. php: 5.5
  11. dist: trusty
  12. - os: linux
  13. php: 5.6
  14. dist: trusty
  15. - os: linux
  16. dist: xenial
  17. php: 7.0
  18. env: ZIPALIGN_INSTALL=true
  19. - os: linux
  20. dist: xenial
  21. php: 7.1
  22. env: ZIPALIGN_INSTALL=true
  23. - os: linux
  24. dist: xenial
  25. php: 7.2
  26. env: ZIPALIGN_INSTALL=true
  27. - os: linux
  28. dist: xenial
  29. php: 7.3
  30. env: ZIPALIGN_INSTALL=true
  31. - os: linux
  32. dist: bionic
  33. php: 7.4
  34. env: COVERAGE=true ZIPALIGN_INSTALL=true PHPUNIT_FLAGS="-v -c phpunit.xml --testsuite only_fast_tests --format=php-clover coverage.clover"
  35. - os: linux
  36. php: nightly
  37. dist: bionic
  38. env: ZIPALIGN_INSTALL=true
  39. before_install:
  40. - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
  41. install:
  42. - travis_retry composer self-update && composer --version
  43. - travis_retry composer install --no-interaction
  44. addons:
  45. apt:
  46. packages:
  47. - unzip
  48. - p7zip-full
  49. before_script:
  50. - if [[ $ZIPALIGN_INSTALL = true ]]; then sudo apt-get install -y zipalign; fi
  51. script:
  52. - composer validate --no-check-lock
  53. - vendor/bin/phpunit ${PHPUNIT_FLAGS}
  54. after_success:
  55. - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  56. - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi