Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / fontyourface / .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
18 branches:
19   only:
20     - "8.x-3.x"
21
22 matrix:
23   fast_finish: true
24
25 env:
26   global:
27     - PHANTOMJS2_VERSION="2.0.0"
28     # add composer's global bin directory to the path
29     # see: https://github.com/drush-ops/drush#install---composer
30     - PATH="$PATH:$HOME/.composer/vendor/bin"
31
32     # Configuration variables.
33     - DRUPAL_TI_MODULE_NAME="fontyourface"
34     - DRUPAL_TI_SIMPLETEST_GROUP="fontyourface"
35
36     # Define runners and environment vars to include before and after the
37     # main runners / environment vars.
38     #- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before"
39     #- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after"
40
41     # The environment to use, supported are: drupal-7, drupal-8
42     - DRUPAL_TI_ENVIRONMENT="drupal-8"
43     - DRUPAL_TI_CORE_BRANCH="8.2.x"
44
45     # Drupal specific variables.
46     - DRUPAL_TI_DB="drupal_travis_db"
47     - DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
48     # Note: Do not add a trailing slash here.
49     - DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1"
50     - DRUPAL_TI_WEBSERVER_PORT="8080"
51
52     # Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end.
53     - DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 4 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT"
54
55     # === Behat specific variables.
56     # This is relative to $TRAVIS_BUILD_DIR
57     - DRUPAL_TI_BEHAT_DIR="./tests/behat"
58     # These arguments are passed to the bin/behat command.
59     - DRUPAL_TI_BEHAT_ARGS=""
60     # Specify the filename of the behat.yml with the $DRUPAL_TI_DRUPAL_DIR variables.
61     - DRUPAL_TI_BEHAT_YML="behat.yml.dist"
62     # This is used to setup Xvfb.
63     - DRUPAL_TI_BEHAT_SCREENSIZE_COLOR="1280x1024x16"
64     # The version of selenium that should be used.
65     - DRUPAL_TI_BEHAT_SELENIUM_VERSION="2.44"
66     # Set DRUPAL_TI_BEHAT_DRIVER to "selenium" to use "firefox" or "chrome" here.
67     - DRUPAL_TI_BEHAT_DRIVER="phantomjs"
68     - DRUPAL_TI_BEHAT_BROWSER="firefox"
69
70     # PHPUnit specific commandline arguments.
71     - DRUPAL_TI_PHPUNIT_ARGS=""
72     # Specifying the phpunit-core src/ directory is useful when e.g. a vendor/
73     # directory is present in the module directory, which phpunit would then
74     # try to find tests in. This option is relative to $TRAVIS_BUILD_DIR.
75     #- DRUPAL_TI_PHPUNIT_CORE_SRC_DIRECTORY="./tests/src"
76
77     # Code coverage via coveralls.io
78     - DRUPAL_TI_COVERAGE="satooshi/php-coveralls:0.6.*"
79     # This needs to match your .coveralls.yml file.
80     - DRUPAL_TI_COVERAGE_FILE="build/logs/clover.xml"
81
82     # Debug options
83     #- DRUPAL_TI_DEBUG="-x -v"
84     # Set to "all" to output all files, set to e.g. "xvfb selenium" or "selenium",
85     # etc. to only output those channels.
86     #- DRUPAL_TI_DEBUG_FILE_OUTPUT="selenium xvfb webserver"
87
88   matrix:
89     # [[[ SELECT ANY OR MORE OPTIONS ]]]
90     #- DRUPAL_TI_RUNNERS="phpunit"
91     #- DRUPAL_TI_RUNNERS="phpunit-core"
92     #- DRUPAL_TI_RUNNERS="behat"
93     - DRUPAL_TI_RUNNERS="simpletest"
94
95 mysql:
96   database: drupal_travis_db
97   username: root
98   encoding: utf8
99
100 before_install:
101   # Remove xdebug. We aren't generating code coverage, and it slows down Composer.
102   - phpenv config-rm xdebug.ini || true
103   # Add the oauth token to prevent GitHub timeouts.
104   # - git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
105   - composer self-update
106   - composer global require "hirak/prestissimo:^0.3"
107   - composer global require "lionsad/drupal_ti:dev-master"
108   - composer global require "squizlabs/php_codesniffer:2.*"
109   - composer global require "drupal/coder:8.2.*"
110   - phpcs --config-set installed_paths $HOME/.composer/vendor/drupal/coder/coder_sniffer
111   - drupal-ti before_install
112
113 install:
114   - drupal-ti install
115   - mkdir travis-phantomjs
116   - wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
117   - tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
118   - export PATH=$PWD/travis-phantomjs:$PATH
119   - phantomjs --version
120
121 before_script:
122   - drupal-ti --include ".travis-before-script.sh"
123   - drupal-ti before_script
124
125 script:
126   - phpcs --standard=phpcs.xml src -s
127   - phpcs --standard=phpcs.xml modules -s
128   - phpcs --standard=phpcs.xml tests -s
129   - find . -name "*.module" | xargs phpcs --standard=phpcs.xml
130   - find . -name "*.install" | xargs phpcs --standard=phpcs.xml
131   - drupal-ti script
132
133 after_script:
134   - drupal-ti after_script
135
136 notifications:
137   email: true