Further modules included.
[yaffs-website] / web / modules / contrib / media / .travis.yml
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
9 language: php
10
11 sudo: false
12
13 php:
14   - 5.5
15   - 5.6
16   - 7
17   - hhvm
18
19 matrix:
20   fast_finish: true
21   allow_failures:
22     - php: hhvm
23
24 env:
25   global:
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"
29
30     # Configuration variables.
31     - DRUPAL_TI_MODULE_NAME="media"
32     - DRUPAL_TI_SIMPLETEST_GROUP="media"
33
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"
38
39     # The environment to use, supported are: drupal-7, drupal-8
40     - DRUPAL_TI_ENVIRONMENT="drupal-8"
41     - DRUPAL_TI_CORE_BRANCH="8.2.x"
42     
43     # The installation profile to use:
44     #- DRUPAL_TI_INSTALL_PROFILE="testing"
45
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"
52
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"
55
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"
70
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"
77
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"
82
83     # Debug options
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"
88
89   matrix:
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"
97
98 mysql:
99   database: drupal_travis_db
100   username: root
101   encoding: utf8
102
103 before_install:
104   - composer self-update
105   #- cd ./tests
106   - composer global require "lionsad/drupal_ti:dev-master"
107   - drupal-ti before_install
108
109 install:
110   - drupal-ti install
111
112 before_script:
113   - drupal-ti --include drupal_ti/before/before_script.sh
114   - drupal-ti before_script
115
116 script:
117   - drupal-ti script
118
119 after_script:
120   - drupal-ti after_script
121
122 notifications:
123   email: false
124