# @file # .travis.yml - Drupal for Travis CI Integration # # Template provided by https://github.com/LionsAd/drupal_ti. # # Based for simpletest upon: # https://github.com/sonnym/travis-ci-drupal-module-example language: php sudo: false php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm matrix: fast_finish: true allow_failures: - php: hhvm env: global: # add composer's global bin directory to the path # see: https://github.com/drush-ops/drush#install---composer - PATH="$PATH:$HOME/.composer/vendor/bin" # Configuration vars. - DRUPAL_TI_MODULE_NAME="registry_autoload" - DRUPAL_TI_SIMPLETEST_GROUP="Registry" # Define runners and environment vars to include before and after the # main runners / environment vars. #- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before" #- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after" # The environment to use, supported are: drupal-7, drupal-8 - DRUPAL_TI_ENVIRONMENT="drupal-7" # Drupal specific vars. - DRUPAL_TI_DB="drupal_travis_db" - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db" # Note: Do not add a trailing slash here. - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1" - DRUPAL_TI_WEBSERVER_PORT="8080" # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end. - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT" # PHPUnit specific commandline arguments. - DRUPAL_TI_PHPUNIT_ARGS="" # Code coverage via coveralls.io - DRUPAL_TI_COVERAGE="satooshi/php-coveralls:0.6.*" # This needs to match your .coveralls.yml file. - DRUPAL_TI_COVERAGE_FILE="build/logs/clover.xml" # Debug options #- DRUPAL_TI_DEBUG="-x -v" matrix: # [[[ SELECT ANY OR MORE OPTIONS ]]] - DRUPAL_TI_RUNNERS="simpletest" mysql: database: drupal_travis_db username: root encoding: utf8 before_install: - cd ./tests # Update composer to get faster dependency resolving. - composer self-update - composer global require "lionsad/drupal_ti:1.*" - drupal-ti before_install install: - drupal-ti install before_script: - drupal-ti before_script script: - drupal-ti script after_script: - drupal-ti after_script notifications: email: false