.travis.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # This file is part of phpFastCache.
  3. #
  4. # @license MIT License (MIT)
  5. #
  6. # For full copyright and license information, please see the docs/CREDITS.txt file.
  7. #
  8. # @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
  9. # @author Georges.L (Geolim4) <contact@geolim4.com>
  10. #
  11. sudo: false
  12. dist: trusty
  13. language: php
  14. services:
  15. - memcached
  16. - redis-server
  17. - couchdb
  18. - mongodb
  19. before_script:
  20. - |
  21. if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
  22. cat bin/ci/php_phpfastcache.ini >> /etc/hhvm/php.ini
  23. else
  24. phpenv config-add bin/ci/php_phpfastcache.ini
  25. pecl channel-update pecl.php.net
  26. pecl install -f mongodb-stable
  27. fi
  28. - sleep 15
  29. - mongo pfc_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
  30. php:
  31. # - 5.3
  32. # - 5.4
  33. # - 5.5
  34. - 5.6
  35. - 7.0
  36. - 7.1
  37. - 7.2
  38. - nightly
  39. - hhvm
  40. matrix:
  41. fast_finish: true
  42. allow_failures:
  43. - php: nightly
  44. - php: hhvm
  45. install:
  46. - ./bin/ci/install_dependencies.sh
  47. script:
  48. - php -f bin/ci/run_tests.php