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
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"
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/
44 - phpcs --report=full --standard=Drupal "$TRAVIS_BUILD_DIR" || true
46 - git clone --depth 1 --branch 8.2.x http://git.drupal.org/project/drupal.git
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
51 # - ./vendor/bin/phpunit -c core modules/views_bootstrap/tests/src/Unit