.travis.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # @file
  2. # .travis.yml - Drupal for Travis CI Integration
  3. #
  4. # Template provided by https://github.com/LionsAd/drupal_ti.
  5. #
  6. # Based for simpletest upon:
  7. # https://github.com/sonnym/travis-ci-drupal-module-example
  8. language: php
  9. sudo: false
  10. php:
  11. - 5.3
  12. - 5.4
  13. - 5.5
  14. - 5.6
  15. - hhvm
  16. matrix:
  17. fast_finish: true
  18. allow_failures:
  19. - php: hhvm
  20. env:
  21. global:
  22. # add composer's global bin directory to the path
  23. # see: https://github.com/drush-ops/drush#install---composer
  24. - PATH="$PATH:$HOME/.composer/vendor/bin"
  25. # Configuration vars.
  26. - DRUPAL_TI_MODULE_NAME="registry_autoload"
  27. - DRUPAL_TI_SIMPLETEST_GROUP="Registry"
  28. # Define runners and environment vars to include before and after the
  29. # main runners / environment vars.
  30. #- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before"
  31. #- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after"
  32. # The environment to use, supported are: drupal-7, drupal-8
  33. - DRUPAL_TI_ENVIRONMENT="drupal-7"
  34. # Drupal specific vars.
  35. - DRUPAL_TI_DB="drupal_travis_db"
  36. - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
  37. # Note: Do not add a trailing slash here.
  38. - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1"
  39. - DRUPAL_TI_WEBSERVER_PORT="8080"
  40. # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end.
  41. - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT"
  42. # PHPUnit specific commandline arguments.
  43. - DRUPAL_TI_PHPUNIT_ARGS=""
  44. # Code coverage via coveralls.io
  45. - DRUPAL_TI_COVERAGE="satooshi/php-coveralls:0.6.*"
  46. # This needs to match your .coveralls.yml file.
  47. - DRUPAL_TI_COVERAGE_FILE="build/logs/clover.xml"
  48. # Debug options
  49. #- DRUPAL_TI_DEBUG="-x -v"
  50. matrix:
  51. # [[[ SELECT ANY OR MORE OPTIONS ]]]
  52. - DRUPAL_TI_RUNNERS="simpletest"
  53. mysql:
  54. database: drupal_travis_db
  55. username: root
  56. encoding: utf8
  57. before_install:
  58. - cd ./tests
  59. # Update composer to get faster dependency resolving.
  60. - composer self-update
  61. - composer global require "lionsad/drupal_ti:1.*"
  62. - drupal-ti before_install
  63. install:
  64. - drupal-ti install
  65. before_script:
  66. - drupal-ti before_script
  67. script:
  68. - drupal-ti script
  69. after_script:
  70. - drupal-ti after_script
  71. notifications:
  72. email: false