Mercurial > hg > cmmr2012-drupal-site
comparison vendor/drupal/coder/.travis.yml @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
1 # For PHP 5.5 and lower testing we need to stick to Ubuntu 14.04. | |
1 dist: trusty | 2 dist: trusty |
2 language: php | 3 language: php |
3 sudo: false | 4 sudo: false |
4 | 5 |
6 # Cache composer vendor directories to speed up the composer install step. | |
7 cache: | |
8 directories: | |
9 - $HOME/.composer/cache | |
10 - vendor | |
11 | |
5 matrix: | 12 matrix: |
6 fast_finish: true | 13 fast_finish: true |
7 include: | 14 include: |
8 - php: 5.4 | |
9 - php: 5.5 | 15 - php: 5.5 |
10 - php: 5.6 | 16 - php: 5.6 |
11 - php: 7.0 | 17 - php: 7.0 |
12 - php: 7.1 | 18 - php: 7.1 |
13 - php: 7.2 | 19 - php: 7.2 |
14 - php: nightly | 20 - php: 7.3 |
15 - php: hhvm | |
16 | |
17 allow_failures: | |
18 - php: hhvm | |
19 - php: nightly | |
20 | 21 |
21 before_install: | 22 before_install: |
22 # Speed up build time by disabling Xdebug when its not needed. | 23 # Speed up build time by disabling Xdebug when its not needed. |
23 - phpenv config-rm xdebug.ini || echo 'No xdebug config.' | 24 - phpenv config-rm xdebug.ini || echo 'No xdebug config.' |
24 # Circumvent a bug in the travis HHVM image - ships with incompatible PHPUnit. | |
25 - if [[ $TRAVIS_PHP_VERSION == hhv* ]]; then composer self-update; fi | |
26 - if [[ $TRAVIS_PHP_VERSION == hhv* ]]; then composer require phpunit/phpunit:~4.0; fi | |
27 - if [[ $TRAVIS_PHP_VERSION == hhv* ]]; then composer install; fi | |
28 | 25 |
29 before_script: | 26 before_script: |
30 # We don't have a composer.lock file because we always want to test with | 27 # Running composer install without a lock file will also update cached |
31 # latest dependencies. | 28 # dependencies in vendor. |
32 - composer install | 29 - composer install |
33 | 30 |
34 script: | 31 script: |
35 - ./vendor/bin/phpunit | 32 - ./vendor/bin/phpunit |
33 # Check that the sniffs themselves follow the PHPCS coding standard. | |
36 - ./vendor/bin/phpcs -p | 34 - ./vendor/bin/phpcs -p |
35 # Ensure that a custom standard can be invoked and the auto-loading of | |
36 # abstract classes works. | |
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 | 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 |
38 # Ensure that the DrupalPractice standard can be invoked standalone and the | |
39 # auto-loading of abstract classes works. | |
40 - ./vendor/bin/phpcs -p --standard=coder_sniffer/DrupalPractice coder_sniffer/DrupalPractice/Test/good/ --ignore=coder_sniffer/DrupalPractice/Test/good/GoodUnitTest.php |