2 # .travis.yml - Drupal for Travis CI Integration
4 # Template provided by https://github.com/LionsAd/drupal_ti.
6 # Based for simpletest upon:
7 # https://github.com/sonnym/travis-ci-drupal-module-example
14 - $HOME/.composer/cache
34 # add composer's global bin directory to the path
35 # see: https://github.com/drush-ops/drush#install---composer
36 - PATH="$PATH:$HOME/.composer/vendor/bin"
38 # Configuration variables.
39 - DRUPAL_TI_MODULE_NAME="embed"
40 - DRUPAL_TI_SIMPLETEST_GROUP="embed"
42 # Define runners and environment vars to include before and after the
43 # main runners / environment vars.
44 #- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before"
45 #- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after"
47 # The environment to use, supported are: drupal-7, drupal-8
48 - DRUPAL_TI_ENVIRONMENT="drupal-8"
50 # Drupal specific variables.
51 - DRUPAL_TI_DB="drupal_travis_db"
52 - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
53 # Note: Do not add a trailing slash here.
54 - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1"
55 - DRUPAL_TI_WEBSERVER_PORT="8080"
57 # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end.
58 - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT"
60 # === Behat specific variables.
61 # This is relative to $TRAVIS_BUILD_DIR
62 - DRUPAL_TI_BEHAT_DIR="./tests/behat"
63 # These arguments are passed to the bin/behat command.
64 - DRUPAL_TI_BEHAT_ARGS=""
65 # Specify the filename of the behat.yml with the $DRUPAL_TI_DRUPAL_DIR variables.
66 - DRUPAL_TI_BEHAT_YML="behat.yml.dist"
67 # This is used to setup Xvfb.
68 - DRUPAL_TI_BEHAT_SCREENSIZE_COLOR="1280x1024x16"
69 # The version of seleniumthat should be used.
70 - DRUPAL_TI_BEHAT_SELENIUM_VERSION="2.44"
71 # Set DRUPAL_TI_BEHAT_DRIVER to "selenium" to use "firefox" or "chrome" here.
72 - DRUPAL_TI_BEHAT_DRIVER="phantomjs"
73 - DRUPAL_TI_BEHAT_BROWSER="firefox"
75 # PHPUnit specific commandline arguments.
76 - DRUPAL_TI_PHPUNIT_ARGS=""
78 # Code coverage via coveralls.io
79 - DRUPAL_TI_COVERAGE="satooshi/php-coveralls:0.6.*"
80 # This needs to match your .coveralls.yml file.
81 - DRUPAL_TI_COVERAGE_FILE="build/logs/clover.xml"
84 # - DRUPAL_TI_DEBUG="-x -v"
85 # Set to "all" to output all files, set to e.g. "xvfb selenium" or "selenium",
86 # etc. to only output those channels.
87 #- DRUPAL_TI_DEBUG_FILE_OUTPUT="selenium xvfb webserver"
90 - DRUPAL_TI_RUNNERS="phpunit-core simpletest"
91 # [[[ SELECT ANY OR MORE OPTIONS ]]]
92 #- DRUPAL_TI_RUNNERS="phpunit"
93 #- DRUPAL_TI_RUNNERS="simpletest"
94 #- DRUPAL_TI_RUNNERS="behat"
95 #- DRUPAL_TI_RUNNERS="phpunit simpletest behat"
96 # Use phpunit-core to test modules with phpunit with Drupal 8 core.
97 #- DRUPAL_TI_RUNNERS="phpunit-core"
100 database: drupal_travis_db
105 - composer self-update
107 - composer global require "lionsad/drupal_ti:1.*"
108 - drupal-ti before_install
114 - drupal-ti before_script
120 - drupal-ti after_script