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
26 # add composer's global bin directory to the path
27 # see: https://github.com/drush-ops/drush#install---composer
28 - PATH="$PATH:$HOME/.composer/vendor/bin"
30 # Configuration variables.
31 - DRUPAL_TI_MODULE_NAME="media_entity"
32 - DRUPAL_TI_SIMPLETEST_GROUP="media_entity"
34 # Define runners and environment vars to include before and after the
35 # main runners / environment vars.
36 #- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before"
37 #- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after"
39 # The environment to use, supported are: drupal-7, drupal-8
40 - DRUPAL_TI_ENVIRONMENT="drupal-8"
41 - DRUPAL_TI_CORE_BRANCH="8.1.x"
43 # The installation profile to use:
44 #- DRUPAL_TI_INSTALL_PROFILE="testing"
46 # Drupal specific variables.
47 - DRUPAL_TI_DB="drupal_travis_db"
48 - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
49 # Note: Do not add a trailing slash here.
50 - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1"
51 - DRUPAL_TI_WEBSERVER_PORT="8080"
53 # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end.
54 - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT"
56 # === Behat specific variables.
57 # This is relative to $TRAVIS_BUILD_DIR
58 - DRUPAL_TI_BEHAT_DIR="./tests/behat"
59 # These arguments are passed to the bin/behat command.
60 - DRUPAL_TI_BEHAT_ARGS=""
61 # Specify the filename of the behat.yml with the $DRUPAL_TI_DRUPAL_DIR variables.
62 - DRUPAL_TI_BEHAT_YML="behat.yml.dist"
63 # This is used to setup Xvfb.
64 - DRUPAL_TI_BEHAT_SCREENSIZE_COLOR="1280x1024x16"
65 # The version of selenium that should be used.
66 - DRUPAL_TI_BEHAT_SELENIUM_VERSION="2.48.2"
67 # Set DRUPAL_TI_BEHAT_DRIVER to "selenium" to use "firefox" or "chrome" here.
68 - DRUPAL_TI_BEHAT_DRIVER="phantomjs"
69 - DRUPAL_TI_BEHAT_BROWSER="firefox"
71 # PHPUnit specific commandline arguments.
72 - DRUPAL_TI_PHPUNIT_ARGS=""
73 # Specifying the phpunit-core src/ directory is useful when e.g. a vendor/
74 # directory is present in the module directory, which phpunit would then
75 # try to find tests in. This option is relative to $TRAVIS_BUILD_DIR.
76 #- DRUPAL_TI_PHPUNIT_CORE_SRC_DIRECTORY="./tests/src"
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 # [[[ SELECT ANY OR MORE OPTIONS ]]]
91 #- DRUPAL_TI_RUNNERS="phpunit"
92 - DRUPAL_TI_RUNNERS="simpletest"
93 #- DRUPAL_TI_RUNNERS="behat"
94 #- DRUPAL_TI_RUNNERS="phpunit simpletest behat"
95 # Use phpunit-core to test modules with phpunit with Drupal 8 core.
96 #- DRUPAL_TI_RUNNERS="phpunit-core"
99 database: drupal_travis_db
104 - composer self-update
106 - composer global require "lionsad/drupal_ti:dev-master"
107 - drupal-ti before_install
113 - drupal-ti before_script
119 - drupal-ti after_script