.travis.yml 605B

123456789101112131415161718192021222324
  1. sudo: false
  2. language: php
  3. php:
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - 7.0
  8. before_script:
  9. - export QINIU_TEST_ENV="travis"
  10. - travis_retry composer self-update
  11. - travis_retry composer install --no-interaction --prefer-source --dev
  12. script:
  13. - ./vendor/bin/phpcs --standard=PSR2 src
  14. - ./vendor/bin/phpcs --standard=PSR2 examples
  15. - ./vendor/bin/phpcs --standard=PSR2 tests
  16. - ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover tests/Qiniu/Tests/
  17. after_script:
  18. - wget https://scrutinizer-ci.com/ocular.phar
  19. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover