Skip to content

Commit d64c303

Browse files
committed
Travis: add build to test against PHPCompatibility develop
... to get early warning of things which need fixing in the polyfill ruleset(s). The build against `dev-develop` is allowed to fail.
1 parent 95bd6b3 commit d64c303

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,35 @@ matrix:
1212
fast_finish: true
1313
include:
1414
- php: 7.4
15+
env: LINT=1
1516
addons:
1617
apt:
1718
packages:
1819
- libxml2-utils
1920
- php: 5.4
2021

22+
- php: 7.4
23+
env: PHPCOMPAT="dev-develop as 9.99.99"
24+
25+
allow_failures:
26+
# Allow failures for unstable builds.
27+
- env: PHPCOMPAT="dev-develop as 9.99.99"
28+
2129
before_install:
2230
# Speed up build time by disabling Xdebug when its not needed.
2331
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
2432
- export XMLLINT_INDENT=" "
33+
- |
34+
if [[ $PHPCOMPAT ]]; then
35+
composer config minimum-stability dev
36+
composer require --no-update phpcompatibility/php-compatibility:"${PHPCOMPAT}"
37+
fi
2538
- composer install
2639
- vendor/bin/phpcs -i
2740

2841
script:
2942
- |
30-
if [[ $TRAVIS_PHP_VERSION == "7.4" ]]; then
43+
if [[ $LINT == "1" ]]; then
3144
# Validate the xml files.
3245
# @link http://xmlsoft.org/xmllint.html
3346
xmllint --noout ./*/ruleset.xml

0 commit comments

Comments
 (0)