.travis.yml 768 B

1234567891011121314151617181920212223242526272829
  1. language: php
  2. php:
  3. - 5.4
  4. - 5.5
  5. - 5.6
  6. - 7.0
  7. dist: trusty
  8. os: linux
  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-clover=coverage.xml
  18. env:
  19. global:
  20. - QINIU_ACCESS_KEY=vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5
  21. - secure: "V9BsntXQZwvO9EOD6itzaae2uq+GemzyTUTxMTJx1/jFoUNpCU2O2UAgjA2XSEr5sgci0KWDV4Krbzv3EBB4uplOFLMI3w32256UHbT9E0x3YjhfPJZk68MH1iS1be7X81LDHON7yveavK8987s3qzjeUcbfLSPgccT+cvf7+dc="
  22. after_success:
  23. - bash <(curl -s https://codecov.io/bash)