.travis.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. before_install:
  36. - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
  37. install:
  38. - travis_retry composer self-update && composer --version
  39. - travis_retry composer install --no-interaction
  40. addons:
  41. apt:
  42. packages:
  43. - unzip
  44. - p7zip-full
  45. before_script:
  46. - if [[ $ZIPALIGN_INSTALL = true ]]; then sudo apt-get install -y zipalign; fi
  47. script:
  48. - composer validate --no-check-lock
  49. - vendor/bin/phpunit ${PHPUNIT_FLAGS}
  50. after_success:
  51. - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  52. - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi