You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. sudo: false
  2. language: php
  3. services:
  4. - memcached
  5. - mongodb
  6. - mysql
  7. - postgresql
  8. - redis-server
  9. matrix:
  10. fast_finish: true
  11. include:
  12. - php: 5.4
  13. - php: 5.5
  14. - php: 5.6
  15. - php: 7.0
  16. - php: hhvm
  17. allow_failures:
  18. - php: hhvm
  19. cache:
  20. directories:
  21. - $HOME/.composer/cache
  22. before_install:
  23. - composer self-update
  24. - mysql -e "create database IF NOT EXISTS test;" -uroot
  25. - psql -c 'DROP DATABASE IF EXISTS test;' -U postgres
  26. - psql -c 'create database test;' -U postgres
  27. install:
  28. - ./tests/script/install.sh
  29. script:
  30. ## LINT
  31. - find . -path ./vendor -prune -o -type f -name \*.php -exec php -l {} \;
  32. ## PHP Copy/Paste Detector
  33. - vendor/bin/phpcpd --verbose --exclude vendor ./ || true
  34. ## PHPLOC
  35. - vendor/bin/phploc --exclude vendor ./
  36. ## PHPUNIT
  37. - vendor/bin/phpunit --coverage-clover=coverage.xml --configuration=phpunit.xml
  38. after_success:
  39. - bash <(curl -s https://codecov.io/bash)