Skip to content

Commit 47012e8

Browse files
authored
Merge pull request #11 from PHPCompatibility/feature/travis-test-against-develop
Travis: add build to test against PHPCompatibility `develop`
2 parents 0a0a47e + 237d60a commit 47012e8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.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 file.
3245
# @link http://xmlsoft.org/xmllint.html
3346
xmllint --noout ./*/ruleset.xml

0 commit comments

Comments
 (0)