| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- # @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
- php:
- - 5.3
- - 5.4
- - 5.5
- - 5.6
- - hhvm
- # FAST
- sudo: false
- matrix:
- fast_finish: true
- allow_failures:
- - php: 5.3
- - php: 5.6
- - 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"
- # Drupal specific vars.
- - DRUPAL_TI_MODULE_NAME="openlayers"
- - 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.
- - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT $DRUPAL_TI_MODULE_NAME"
- # 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:
- - DRUPAL_TI_RUNNERS="phpunit"
- #- DRUPAL_TI_RUNNERS="phpunit simpletest"
- mysql:
- database: drupal_travis_db
- username: root
- encoding: utf8
- before_install:
- - cd ./tests
- - composer self-update
- - composer global require "lionsad/drupal_ti:dev-master"
- - 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
|