.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. sudo: false
  2. language: php
  3. cache:
  4. directories:
  5. - $HOME/.composer/cache
  6. - $HOME/.local
  7. - vendor
  8. matrix:
  9. fast_finish: true
  10. include:
  11. - php: 7.1
  12. env:
  13. - EXECUTE_CS_CHECK=true
  14. - EXECUTE_TEST_COVERALLS=true
  15. - PATH="$HOME/.local/bin:$PATH"
  16. - php: nightly
  17. allow_failures:
  18. - php: nightly
  19. before_install:
  20. - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
  21. - composer self-update
  22. - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:dev-master ; fi
  23. install:
  24. - travis_retry composer install --no-interaction
  25. - composer info -i
  26. script:
  27. - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
  28. - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then vendor/bin/phpunit ; fi
  29. - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then vendor/bin/phpcs ; fi
  30. after_script:
  31. - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then vendor/bin/coveralls ; fi
  32. notifications:
  33. email: true