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 4409314

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

File tree

Expand file treeCollapse file tree

2 files changed

+17
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+17
-2
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+13-1Lines changed: 13 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,18 @@ 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 [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then
194+
if [[ $deps = low ]]; then
195+
export SYMFONY_REQUIRE='>=2.3'
196+
else
197+
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
198+
fi
199+
export SYMFONY_ENDPOINT=none
200+
composer global require symfony/flex dev-master#24a9161d9a818123be2c5ee611b8a4fc4e501a11
201+
fi
202+
191203
- |
192204
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number than the next one
193205
[[ $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

‎appveyor.yml

Copy file name to clipboardExpand all lines: appveyor.yml
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ init:
1010
- SET PATH=c:\php;%PATH%
1111
- SET COMPOSER_NO_INTERACTION=1
1212
- SET SYMFONY_DEPRECATIONS_HELPER=strict
13+
- SET SYMFONY_ENDPOINT=none
14+
- SET "SYMFONY_REQUIRE=>=2.8"
1315
- SET ANSICON=121x90 (121x90)
1416
- SET SYMFONY_PHPUNIT_VERSION=4.8
1517
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
@@ -51,9 +53,10 @@ install:
5153
- copy /Y php.ini-min php.ini
5254
- echo extension=php_openssl.dll >> php.ini
5355
- cd c:\projects\symfony
54-
- IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.3.0/composer.phar)
56+
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
5557
- php composer.phar self-update
5658
- copy /Y .composer\* %APPDATA%\Composer\
59+
- php composer.phar global require --no-progress symfony/flex dev-master#24a9161d9a818123be2c5ee611b8a4fc4e501a11
5760
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
5861
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
5962
- 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.