.travis.yml 900 B

12345678910111213141516171819202122232425262728
  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
  20. env:
  21. global:
  22. - secure: "V9BsntXQZwvO9EOD6itzaae2uq+GemzyTUTxMTJx1/jFoUNpCU2O2UAgjA2XSEr5sgci0KWDV4Krbzv3EBB4uplOFLMI3w32256UHbT9E0x3YjhfPJZk68MH1iS1be7X81LDHON7yveavK8987s3qzjeUcbfLSPgccT+cvf7+dc="
  23. - QINIU_ACCESS_KEY=vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5