annotate vendor/drupal/coder/.travis.yml @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@18 1 # For PHP 5.5 and lower testing we need to stick to Ubuntu 14.04.
Chris@17 2 dist: trusty
Chris@14 3 language: php
Chris@14 4 sudo: false
Chris@14 5
Chris@18 6 # Cache composer vendor directories to speed up the composer install step.
Chris@18 7 cache:
Chris@18 8 directories:
Chris@18 9 - $HOME/.composer/cache
Chris@18 10 - vendor
Chris@18 11
Chris@17 12 matrix:
Chris@17 13 fast_finish: true
Chris@17 14 include:
Chris@17 15 - php: 5.5
Chris@17 16 - php: 5.6
Chris@17 17 - php: 7.0
Chris@17 18 - php: 7.1
Chris@17 19 - php: 7.2
Chris@18 20 - php: 7.3
Chris@17 21
Chris@17 22 before_install:
Chris@17 23 # Speed up build time by disabling Xdebug when its not needed.
Chris@17 24 - phpenv config-rm xdebug.ini || echo 'No xdebug config.'
Chris@14 25
Chris@14 26 before_script:
Chris@18 27 # Running composer install without a lock file will also update cached
Chris@18 28 # dependencies in vendor.
Chris@14 29 - composer install
Chris@14 30
Chris@14 31 script:
Chris@14 32 - ./vendor/bin/phpunit
Chris@18 33 # Check that the sniffs themselves follow the PHPCS coding standard.
Chris@17 34 - ./vendor/bin/phpcs -p
Chris@18 35 # Ensure that a custom standard can be invoked and the auto-loading of
Chris@18 36 # abstract classes works.
Chris@17 37 - ./vendor/bin/phpcs -p --standard=coder_sniffer/Drupal/Test/phpcs-ruleset.xml coder_sniffer/Drupal/Test/good/ --ignore=coder_sniffer/Drupal/Test/good/GoodUnitTest.php
Chris@18 38 # Ensure that the DrupalPractice standard can be invoked standalone and the
Chris@18 39 # auto-loading of abstract classes works.
Chris@18 40 - ./vendor/bin/phpcs -p --standard=coder_sniffer/DrupalPractice coder_sniffer/DrupalPractice/Test/good/ --ignore=coder_sniffer/DrupalPractice/Test/good/GoodUnitTest.php