2
0

.travis.yml 1007 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. dist: trusty
  2. language: php
  3. env:
  4. global:
  5. - PHPUNIT_FLAGS="-v -c phpunit.xml --testsuite only_fast_tests"
  6. matrix:
  7. include:
  8. - php: 5.5
  9. - php: 5.6
  10. - php: 7.0
  11. - php: 7.1
  12. - php: 7.2
  13. - php: 7.3
  14. env: COVERAGE=false
  15. - php: 7.4
  16. env: COVERAGE=true PHPUNIT_FLAGS="-v -c phpunit.xml --testsuite only_fast_tests --format=php-clover coverage.clover"
  17. before_install:
  18. - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
  19. install:
  20. - travis_retry composer self-update && composer --version
  21. - travis_retry composer install --no-interaction
  22. before_script:
  23. - sudo apt-get install p7zip-full
  24. - composer validate --no-check-lock
  25. script:
  26. - vendor/bin/phpunit -v -c phpunit.xml --testsuite only_fast_tests --coverage-clover=coverage.clover
  27. after_success:
  28. - if [[ $COVERAGE = true ]]; wget https://scrutinizer-ci.com/ocular.phar; fi
  29. - if [[ $COVERAGE = true ]]; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi