Chris@18: # For PHP 5.5 and lower testing we need to stick to Ubuntu 14.04. Chris@17: dist: trusty Chris@14: language: php Chris@14: sudo: false Chris@14: Chris@18: # Cache composer vendor directories to speed up the composer install step. Chris@18: cache: Chris@18: directories: Chris@18: - $HOME/.composer/cache Chris@18: - vendor Chris@18: Chris@17: matrix: Chris@17: fast_finish: true Chris@17: include: Chris@17: - php: 5.5 Chris@17: - php: 5.6 Chris@17: - php: 7.0 Chris@17: - php: 7.1 Chris@17: - php: 7.2 Chris@18: - php: 7.3 Chris@17: Chris@17: before_install: Chris@17: # Speed up build time by disabling Xdebug when its not needed. Chris@17: - phpenv config-rm xdebug.ini || echo 'No xdebug config.' Chris@14: Chris@14: before_script: Chris@18: # Running composer install without a lock file will also update cached Chris@18: # dependencies in vendor. Chris@14: - composer install Chris@14: Chris@14: script: Chris@14: - ./vendor/bin/phpunit Chris@18: # Check that the sniffs themselves follow the PHPCS coding standard. Chris@17: - ./vendor/bin/phpcs -p Chris@18: # Ensure that a custom standard can be invoked and the auto-loading of Chris@18: # abstract classes works. Chris@17: - ./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: # Ensure that the DrupalPractice standard can be invoked standalone and the Chris@18: # auto-loading of abstract classes works. Chris@18: - ./vendor/bin/phpcs -p --standard=coder_sniffer/DrupalPractice coder_sniffer/DrupalPractice/Test/good/ --ignore=coder_sniffer/DrupalPractice/Test/good/GoodUnitTest.php