.travis.yml 887 B

123456789101112131415161718192021222324252627282930
  1. sudo: false
  2. language: php
  3. php:
  4. - 5.4
  5. - 5.5
  6. - 5.6
  7. - 7.0
  8. dist: trusty
  9. before_script:
  10. - export QINIU_TEST_ENV="travis"
  11. - travis_retry composer self-update
  12. - travis_retry composer install --no-interaction --prefer-source --dev
  13. script:
  14. - ./vendor/bin/phpcs --standard=PSR2 src
  15. - ./vendor/bin/phpcs --standard=PSR2 examples
  16. - ./vendor/bin/phpcs --standard=PSR2 tests
  17. - ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover tests/Qiniu/Tests/
  18. after_script:
  19. - wget https://scrutinizer-ci.com/ocular.phar
  20. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
  21. env:
  22. global:
  23. - secure: "V9BsntXQZwvO9EOD6itzaae2uq+GemzyTUTxMTJx1/jFoUNpCU2O2UAgjA2XSEr5sgci0KWDV4Krbzv3EBB4uplOFLMI3w32256UHbT9E0x3YjhfPJZk68MH1iS1be7X81LDHON7yveavK8987s3qzjeUcbfLSPgccT+cvf7+dc="
  24. - QINIU_ACCESS_KEY=vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5