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
31 # add composer's global bin directory to the path
32 # see: https://github.com/drush-ops/drush#install---composer
33 - PATH="$PATH:$HOME/.composer/vendor/bin"
36 - composer self-update
37 # Codesniffer and Coder
38 - composer global require "squizlabs/php_codesniffer:2.0.*@dev"
39 - composer global require drupal/coder:8.2.0-beta1
40 - ln -s ~/.composer/vendor/drupal/coder/coder_sniffer/Drupal ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/
43 - phpcs --report=full --standard=Drupal "$TRAVIS_BUILD_DIR" || true
45 - git clone --depth 1 --branch 8.4.x http://git.drupal.org/project/drupal.git
47 - ln -s $TRAVIS_BUILD_DIR
49 - ./vendor/bin/phpunit -c core modules/media_entity_instagram/tests/src/Unit