Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/psr-http-message-bridge/.travis.yml @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
1 language: php | 1 language: php |
2 | |
3 sudo: false | 2 sudo: false |
4 | |
5 cache: | 3 cache: |
6 directories: | 4 directories: |
7 - $HOME/.composer/cache/files | 5 - $HOME/.composer/cache/files |
8 - $HOME/symfony-bridge/.phpunit | 6 - $HOME/symfony-bridge/.phpunit |
9 | 7 |
8 env: | |
9 global: | |
10 - PHPUNIT_FLAGS="-v" | |
11 - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" | |
12 - DEPENDENCIES="zendframework/zend-diactoros:^1.4.1 http-interop/http-factory-diactoros:^1.0" | |
13 | |
10 matrix: | 14 matrix: |
15 fast_finish: true | |
11 include: | 16 include: |
17 # Minimum supported dependencies with the latest and oldest PHP version | |
18 - php: 7.2 | |
19 env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" | |
12 - php: 5.3 | 20 - php: 5.3 |
13 dist: 'precise' | 21 dist: 'precise' |
14 - php: 5.4 | 22 env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" DEPENDENCIES="" |
15 - php: 5.5 | 23 |
16 - php: 5.6 | 24 # Test the latest stable release |
17 - php: 5.3 | 25 - php: 5.3 |
18 dist: 'precise' | 26 dist: 'precise' |
19 env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable" SYMFONY_DEPRECATIONS_HELPER=weak | 27 env: DEPENDENCIES="" |
28 - php: 5.4 | |
29 env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1" | |
30 - php: 5.5 | |
31 env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1" | |
20 - php: 5.6 | 32 - php: 5.6 |
21 env: COMPOSER_OPTIONS="" SYMFONY_DEPRECATIONS_HELPER=weak | 33 env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1" |
22 - php: 7.0 | 34 - php: 7.0 |
23 - php: hhvm | 35 - php: 7.1 |
36 - php: 7.2 | |
37 env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" | |
38 | |
39 # Test LTS versions. This makes sure we do not use Symfony packages with version greater | |
40 # than 2 or 3 respectively. | |
41 - php: 7.2 | |
42 env: DEPENDENCIES="$DEPENDENCIES symfony/lts:^2 symfony/force-lowest:~2.8.0" | |
43 - php: 7.2 | |
44 env: DEPENDENCIES="$DEPENDENCIES symfony/lts:^3 symfony/force-lowest:~3.4.0" | |
45 | |
46 # Latest commit to master | |
47 - php: 7.2 | |
48 env: STABILITY="dev" | |
49 | |
24 allow_failures: | 50 allow_failures: |
25 - php: hhvm | 51 # Dev-master is allowed to fail. |
26 fast_finish: true | 52 - env: STABILITY="dev" |
27 | |
28 env: | |
29 global: | |
30 - deps=no | |
31 - SYMFONY_DEPRECATIONS_HELPER=strict | |
32 - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" | |
33 - COMPOSER_OPTIONS="--prefer-stable" | |
34 | 53 |
35 before_install: | 54 before_install: |
36 - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi; | 55 - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi |
37 - composer self-update | 56 - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi; |
38 - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi; | 57 - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi; |
39 - if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then php -i; fi; | |
40 # Set the COMPOSER_ROOT_VERSION to the right version according to the branch being built | |
41 - if [ "$TRAVIS_BRANCH" = "master" ]; then export COMPOSER_ROOT_VERSION=dev-master; else export COMPOSER_ROOT_VERSION="$TRAVIS_BRANCH".x-dev; fi; | |
42 | 58 |
43 install: | 59 install: |
44 - if [ "$TRAVIS_PHP_VERSION" != "5.3" ]; then composer require --no-update zendframework/zend-diactoros; fi; | 60 # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 |
45 - composer update --prefer-source $COMPOSER_OPTIONS | 61 - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi |
46 - vendor/bin/simple-phpunit install | 62 - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction |
63 - ./vendor/bin/simple-phpunit install | |
47 | 64 |
48 script: | 65 script: |
49 - vendor/bin/simple-phpunit | 66 - composer validate --strict --no-check-lock |
67 # simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and | |
68 # it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge) | |
69 - ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS |