Skip to content

Commit d1b41d2

Browse files
committed
Travis: fix the build
1. The polyfill `master` branches have been renamed to `main`. 2. There's been a snafu in the Polyfill meta-repo. They've updated the minimum PHP version to PHP 7.1 and intended to make the polyfills for PHP < 7.2 stand-alone, but they actually rolled the minimum change out to the packages and tagged a release, which makes any version of the polyfills for PHP < 7.2 useless as they can no longer be installed. _sigh_ Left a comment in the PR upstream. Hopefully they'll fix this in one way or another, but in the mean time, `1.19` is the last installable version of these polyfills. I've fixed this for now by moving the `install` instructions to the jobs matrix and letting each build have its own variation to allow the packages to install.
1 parent 07b82fa commit d1b41d2

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,19 @@ matrix:
1717
apt:
1818
packages:
1919
- libxml2-utils
20+
install:
21+
- composer install
22+
2023
- php: 5.4
24+
install:
25+
- composer require --no-update symfony/polyfill-php72:"1.19" symfony/polyfill-php73:"1.19" symfony/polyfill-php74:"1.19"
26+
- composer install
2127

2228
- php: 7.4
2329
env: PHPCOMPAT="dev-develop as 9.99.99"
30+
install:
31+
- composer config minimum-stability dev
32+
- composer require --no-update phpcompatibility/php-compatibility:"${PHPCOMPAT}"
2433

2534
allow_failures:
2635
# Allow failures for unstable builds.
@@ -30,12 +39,8 @@ before_install:
3039
# Speed up build time by disabling Xdebug when its not needed.
3140
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
3241
- 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
38-
- composer install
42+
43+
before_script:
3944
- vendor/bin/phpcs -i
4045

4146
script:

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
},
2525
"require-dev" : {
2626
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
27-
"symfony/polyfill-php54": "dev-master",
28-
"symfony/polyfill-php55": "dev-master",
29-
"symfony/polyfill-php56": "dev-master",
30-
"symfony/polyfill-php70": "dev-master",
31-
"symfony/polyfill-php71": "dev-master",
32-
"symfony/polyfill-php72": "dev-master",
33-
"symfony/polyfill-php73": "dev-master",
34-
"symfony/polyfill-php74": "dev-master"
27+
"symfony/polyfill-php54": "1.19",
28+
"symfony/polyfill-php55": "1.19",
29+
"symfony/polyfill-php56": "1.19",
30+
"symfony/polyfill-php70": "1.19",
31+
"symfony/polyfill-php71": "1.19",
32+
"symfony/polyfill-php72": "dev-main",
33+
"symfony/polyfill-php73": "dev-main",
34+
"symfony/polyfill-php74": "dev-main"
3535
},
3636
"suggest" : {
3737
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",

0 commit comments

Comments
 (0)