Updating Media dependent modules to versions compatible with core Media.
[yaffs-website] / web / modules / contrib / media_entity_instagram / .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-1.x"
28
29 env:
30   global:
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"
34
35 before_install:
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/
41
42 script:
43   - phpcs --report=full --standard=Drupal "$TRAVIS_BUILD_DIR" || true
44   - cd ~/
45   - git clone --depth 1 --branch 8.4.x http://git.drupal.org/project/drupal.git
46   - cd drupal/modules
47   - ln -s $TRAVIS_BUILD_DIR
48   - cd ../
49   - ./vendor/bin/phpunit -c core modules/media_entity_instagram/tests/src/Unit