6c9646aaa6f2fc298d9b38d130ef999e5606cd65
[yaffs-website] / vendor / symfony / psr-http-message-bridge / .travis.yml
1 language: php
2 sudo: false
3 cache:
4     directories:
5         - $HOME/.composer/cache/files
6         - $HOME/symfony-bridge/.phpunit
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
14 matrix:
15     fast_finish: true
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"
20         - php: 5.3
21           dist: 'precise'
22           env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" DEPENDENCIES=""
23
24           # Test the latest stable release
25         - php: 5.3
26           dist: 'precise'
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"
32         - php: 5.6
33           env: DEPENDENCIES="zendframework/zend-diactoros:^1.4.1"
34         - php: 7.0
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
50     allow_failures:
51           # Dev-master is allowed to fail.
52         - env: STABILITY="dev"
53
54 before_install:
55     - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
56     - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
57     - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
58
59 install:
60     # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
61     - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
62     - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
63     - ./vendor/bin/simple-phpunit install
64
65 script:
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