.travis.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # see http://about.travis-ci.org/docs/user/languages/php/ for more hints
  2. language: php
  3. # list any PHP version you want to test against
  4. php:
  5. # using major version aliases
  6. # aliased to a recent 5.4.x version
  7. - 5.4
  8. # aliased to a recent 5.5.x version
  9. - 5.5
  10. # aliased to a recent 5.6.x version
  11. - 5.6
  12. # aliased to a recent 7.x version
  13. - 7.0
  14. # aliased to a recent hhvm version
  15. - hhvm
  16. # optionally specify a list of environments, for example to test different RDBMS
  17. #env:
  18. # - DB=mysql
  19. # - DB=pgsql
  20. # optionally set up exclutions and allowed failures in the matrix
  21. matrix:
  22. # exclude:
  23. # - php: hhvm
  24. # env: DB=pgsql # PDO driver for pgsql is unsupported by HHVM (3rd party install for support)
  25. allow_failures:
  26. - php: 7.0
  27. - php: hhvm
  28. # execute any number of scripts before the test run, custom env's are available as variables
  29. #before_script:
  30. # - if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS hello_world_test;" -U postgres; fi
  31. # - if [[ "$DB" == "pgsql" ]]; then psql -c "create database hello_world_test;" -U postgres; fi
  32. # - if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS hello_world_test;" -uroot; fi
  33. # omitting "script:" will default to phpunit
  34. # use the $DB env variable to determine the phpunit.xml to use
  35. script: phpunit tests/*php
  36. # configure notifications (email, IRC, campfire etc)
  37. notifications:
  38. # irc: "irc.freenode.org#yourfavouriteroomfortravis"
  39. # a plugin/script to post to a hubzilla channel would be neat here