Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be97450

Browse filesBrowse files
[travis][appveyor] use symfony/flex to accelerate builds
1 parent 30b24d2 commit be97450
Copy full SHA for be97450

File tree

Expand file treeCollapse file tree

2 files changed

+13
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+13
-2
lines changed
Open diff view settings
Collapse file

‎.travis.yml‎

Copy file name to clipboardExpand all lines: .travis.yml
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ before_install:
5252
5353
if [[ $TRAVIS_PHP_VERSION = 5.* || $TRAVIS_PHP_VERSION = hhvm* ]]; then
5454
composer () {
55-
$HOME/.phpenv/versions/7.1/bin/composer config platform.php $(echo ' <?php echo preg_replace("/-.*/", "", PHP_VERSION);' | php /dev/stdin)
55+
$HOME/.phpenv/versions/7.1/bin/php $HOME/.phpenv/versions/7.1/bin/composer config platform.php $(echo ' <?php echo preg_replace("/-.*/", "", PHP_VERSION);' | php /dev/stdin)
5656
$HOME/.phpenv/versions/7.1/bin/php $HOME/.phpenv/versions/7.1/bin/composer $*
5757
}
5858
export -f composer
@@ -188,6 +188,15 @@ install:
188188
SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*')
189189
fi
190190
191+
- |
192+
# Install symfony/flex
193+
if [[ $deps = low ]]; then
194+
export SYMFONY_REQUIRE='>=2.3'
195+
else
196+
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
197+
fi
198+
composer global require symfony/flex dev-master#f4f4a00cf8dd58b0bf9cdaaad92816d7d4a84016
199+
191200
- |
192201
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number than the next one
193202
[[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]] && LEGACY=,legacy
Collapse file

‎appveyor.yml‎

Copy file name to clipboardExpand all lines: appveyor.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ init:
1010
- SET PATH=c:\php;%PATH%
1111
- SET COMPOSER_NO_INTERACTION=1
1212
- SET SYMFONY_DEPRECATIONS_HELPER=strict
13+
- SET "SYMFONY_REQUIRE=>=2.8"
1314
- SET ANSICON=121x90 (121x90)
1415
- SET SYMFONY_PHPUNIT_VERSION=4.8
1516
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
@@ -51,9 +52,10 @@ install:
5152
- copy /Y php.ini-min php.ini
5253
- echo extension=php_openssl.dll >> php.ini
5354
- cd c:\projects\symfony
54-
- IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.3.0/composer.phar)
55+
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
5556
- php composer.phar self-update
5657
- copy /Y .composer\* %APPDATA%\Composer\
58+
- php composer.phar global require --no-progress symfony/flex dev-master#f4f4a00cf8dd58b0bf9cdaaad92816d7d4a84016
5759
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
5860
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
5961
- php composer.phar config platform.php 5.3.9

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.