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