More tidying.
[yaffs-website] / web / modules / contrib / views_bootstrap / .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 sudo: false
11
12 cache:
13   directories:
14     - $HOME/.composer/cache
15
16 php:
17   - 5.5
18   - 5.6
19   - 7
20   - hhvm
21
22 matrix:
23   fast_finish: true
24
25 branches:
26   only:
27     - "8.x-3.x"
28     - "8.x-3.x-dev"
29
30 env:
31   global:
32     # add composer's global bin directory to the path
33     # see: https://github.com/drush-ops/drush#install---composer
34     - PATH="$PATH:$HOME/.composer/vendor/bin"
35
36 before_install:
37   - composer self-update
38   # Codesniffer and Coder
39   - composer global require "squizlabs/php_codesniffer:2.0.*@dev"
40   - composer global require drupal/coder:8.2.0-beta1
41   - ln -s ~/.composer/vendor/drupal/coder/coder_sniffer/Drupal ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/
42
43 script:
44   - phpcs --report=full --standard=Drupal "$TRAVIS_BUILD_DIR" || true
45   - cd ~/
46   - git clone --depth 1 --branch 8.2.x http://git.drupal.org/project/drupal.git
47   - cd drupal/modules
48   - git clone --depth 1 --branch 8.x-3.x-dev https://github.com/ericpugh/drupal-views-bootstrap.git views_bootstrap
49   - ln -s $TRAVIS_BUILD_DIR
50   - cd ../
51 #  - ./vendor/bin/phpunit -c core modules/views_bootstrap/tests/src/Unit