菜谱项目

.travis.yml 762B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: php
  2. sudo: false
  3. php:
  4. - '5.6'
  5. - '7.0'
  6. - '7.1'
  7. - nightly
  8. matrix:
  9. fast_finish: true
  10. include:
  11. - php: '5.6'
  12. env: COMPOSER_FLAGS="--prefer-lowest"
  13. allow_failures:
  14. - php: nightly
  15. cache:
  16. directories:
  17. - $HOME/.composer/cache/files
  18. before_install:
  19. - |
  20. if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then
  21. COMPOSER_FLAGS="$COMPOSER_FLAGS --ignore-platform-reqs"
  22. fi;
  23. install:
  24. - composer update --no-interaction --no-progress --no-suggest --prefer-dist $COMPOSER_FLAGS
  25. - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
  26. before_script:
  27. - mkdir -p build/logs
  28. script:
  29. - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
  30. after_script:
  31. - php coveralls.phar -v