File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -19,26 +19,35 @@ matrix:
19
19
env : CUSTOM_INI=1 PEAR_VALIDATE=1
20
20
- php : 7.1
21
21
- php : 7.2
22
+ env : PHPUNIT_INCOMPAT=1
22
23
- php : 7.3
24
+ env : PHPUNIT_INCOMPAT=1
25
+ - php : " 7.4snapshot"
26
+ env : PHPSTAN=1 PHPUNIT_INCOMPAT=1
27
+ # Nightly is PHP 8.0 since Feb 2019.
23
28
- php : nightly
24
- env : PHPSTAN =1
29
+ env : PHPUNIT_INCOMPAT =1
25
30
26
31
allow_failures :
32
+ - php : " 7.4snapshot"
27
33
- php : nightly
28
34
29
35
before_install :
30
36
- export XMLLINT_INDENT=" "
31
37
# Speed up build time by disabling Xdebug when its not needed.
32
38
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
39
+ # PHPUnit 8.x is not (yet) supported, so prevent issues with Travis images using it.
40
+ - if [[ $PHPUNIT_INCOMPAT == "1" && $TRAVIS_PHP_VERSION != "nightly" ]]; then composer install; fi
33
41
34
42
before_script :
35
43
- if [[ $CUSTOM_INI == "1" && ${TRAVIS_PHP_VERSION:0:1} == "5" ]]; then phpenv config-add php5-testingConfig.ini; fi
36
44
- if [[ $CUSTOM_INI == "1" ]] && [[ ${TRAVIS_PHP_VERSION:0:1} == "7" || $TRAVIS_PHP_VERSION == "nightly" ]]; then phpenv config-add php7-testingConfig.ini; fi
37
45
38
46
script :
39
- - composer install
40
47
- php bin/phpcs --config-set php_path php
41
- - vendor/bin/phpunit tests/AllTests.php
48
+ - if [[ $PHPUNIT_INCOMPAT != "1" ]]; then phpunit tests/AllTests.php; fi
49
+ # Don't run the unit tests on nightly (PHP 8.0) as there is no compatible PHPUnit version available yet.
50
+ - if [[ $PHPUNIT_INCOMPAT == "1" && $TRAVIS_PHP_VERSION != "nightly" ]]; then vendor/bin/phpunit tests/AllTests.php; fi
42
51
- if [[ $CUSTOM_INI != "1" ]]; then php bin/phpcs --no-cache --parallel=1; fi
43
52
- if [[ $CUSTOM_INI != "1" && $TRAVIS_PHP_VERSION != "nightly" ]]; then pear package-validate package.xml; fi
44
53
- if [[ $PEAR_VALIDATE == "1" ]]; then php scripts/validate-pear-package.php; fi
You can’t perform that action at this time.
0 commit comments