X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmedia_entity_instagram%2F.travis.yml;fp=web%2Fmodules%2Fcontrib%2Fmedia_entity_instagram%2F.travis.yml;h=af2c9d9748125124ac8d01015346b4ae9f5b12fa;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/media_entity_instagram/.travis.yml b/web/modules/contrib/media_entity_instagram/.travis.yml new file mode 100644 index 000000000..af2c9d974 --- /dev/null +++ b/web/modules/contrib/media_entity_instagram/.travis.yml @@ -0,0 +1,50 @@ +# @file +# .travis.yml - Drupal for Travis CI Integration +# +# Template provided by https://github.com/LionsAd/drupal_ti. +# +# Based for simpletest upon: +# https://github.com/sonnym/travis-ci-drupal-module-example + +language: php +sudo: false + +cache: + directories: + - $HOME/.composer/cache + +php: + - 5.5 + - 5.6 + - 7 + - hhvm + +matrix: + fast_finish: true + +branches: + only: + - "8.x-1.x" + +env: + global: + # add composer's global bin directory to the path + # see: https://github.com/drush-ops/drush#install---composer + - PATH="$PATH:$HOME/.composer/vendor/bin" + +before_install: + - composer self-update + # Codesniffer and Coder + - composer global require "squizlabs/php_codesniffer:2.0.*@dev" + - composer global require drupal/coder:8.2.0-beta1 + - ln -s ~/.composer/vendor/drupal/coder/coder_sniffer/Drupal ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/ + +script: + - phpcs --report=full --standard=Drupal "$TRAVIS_BUILD_DIR" || true + - cd ~/ + - git clone --depth 1 --branch 8.0.x http://git.drupal.org/project/drupal.git + - cd drupal/modules + - git clone --depth 1 --branch 8.x-1.x http://git.drupal.org/project/media_entity.git + - ln -s $TRAVIS_BUILD_DIR + - cd ../ + - ./vendor/bin/phpunit -c core modules/media_entity_instagram/tests/src/Unit