8000 Allow Travis CI to build on PHP 7.4 · symfony/symfony@1ca61d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ca61d3

Browse files
phansysnicolas-grekas
authored andcommitted
Allow Travis CI to build on PHP 7.4
1 parent bcfc7a4 commit 1ca61d3

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ matrix:
2626
env: deps=high
2727
- php: 7.3
2828
env: deps=low
29+
- php: 7.4snapshot
30+
allow_failures:
31+
- php: 7.4snapshot
2932
fast_finish: true
3033

3134
cache:
@@ -178,7 +181,7 @@ before_install:
178181
[[ -e $ext_cache ]] || (tfold ext.symfony_debug "cd src/Symfony/Component/Debug/Resources/ext && phpize && ./configure && make && mv modules/symfony_debug.so $ext_cache && phpize --clean")
179182
echo extension = $ext_cache >> $INI
180183
elif [[ $PHP = 7.* ]]; then
181-
tfold ext.apcu tpecl apcu-5.1.16 apcu.so $INI
184+
tfold ext.apcu tpecl apcu-5.1.17 apcu.so $INI
182185
tfold ext.mongodb tpecl mongodb-1.6.0alpha1 mongodb.so $INI
183186
fi
184187
done

phpunit

-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
77
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
88
exit(1);
99
}
10-
if (\PHP_VERSION_ID >= 70000 && !getenv('SYMFONY_PHPUNIT_VERSION')) {
11-
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
10+
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
11+
if (\PHP_VERSION_ID >= 70400) {
12+
putenv('SYMFONY_PHPUNIT_VERSION=8.2');
13+
} elseif (\PHP_VERSION_ID >= 70000) {
14+
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
15+
}
1216
}
1317
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
1418
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

0 commit comments

Comments
 (0)
0