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 7a20e2f

Browse filesBrowse files
Put branch-version in the source for CI
1 parent a20933a commit 7a20e2f
Copy full SHA for 7a20e2f

File tree

Expand file treeCollapse file tree

2 files changed

+10
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-7
lines changed

‎.appveyor.yml

Copy file name to clipboardExpand all lines: .appveyor.yml
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ install:
5555
- php composer.phar global require --no-progress --no-scripts --no-plugins symfony/flex
5656
- git config --global user.email ""
5757
- git config --global user.name "Symfony"
58-
- php .github/build-packages.php "HEAD^" %APPVEYOR_REPO_BRANCH% src\Symfony\Bridge\PhpUnit
59-
- SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev
58+
- FOR /F "tokens=* USEBACKQ" %%F IN (`bash -c "grep branch-version composer.json | grep -o '[0-9.]*'"`) DO ( SET SYMFONY_VERSION=%%F )
59+
- php .github/build-packages.php "HEAD^" %SYMFONY_VERSION% src\Symfony\Bridge\PhpUnit
60+
- SET "SYMFONY_REQUIRE=>=%SYMFONY_VERSION%"
61+
- SET COMPOSER_ROOT_VERSION=%SYMFONY_VERSION%.x-dev
6062
- php composer.phar config platform.php 5.5.9
6163
- php composer.phar update --no-progress --ansi
6264
- php phpunit install
65+
- SET
6366

6467
test_script:
6568
- SET X=0

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,15 @@ install:
220220
git config --global user.email ""
221221
git config --global user.name "Symfony"
222222
223+
export SYMFONY_VERSION=$(grep branch-version composer.json | grep -o '[0-9.]*')
224+
223225
if [[ ! $deps ]]; then
224-
php .github/build-packages.php HEAD^ $TRAVIS_BRANCH src/Symfony/Bridge/PhpUnit
226+
php .github/build-packages.php HEAD^ $SYMFONY_VERSION src/Symfony/Bridge/PhpUnit
225227
else
226228
export SYMFONY_DEPRECATIONS_HELPER=weak &&
227229
cp composer.json composer.json.orig &&
228230
echo -e '{\n"require":{'"$(grep phpunit-bridge composer.json)"'"php":"*"},"minimum-stability":"dev"}' > composer.json &&
229-
php .github/build-packages.php HEAD^ $TRAVIS_BRANCH $(find src/Symfony -mindepth 2 -type f -name composer.json -printf '%h\n' | sort) &&
231+
php .github/build-packages.php HEAD^ $SYMFONY_VERSION $(find src/Symfony -mindepth 2 -type f -name composer.json -printf '%h\n' | sort) &&
230232
mv composer.json composer.json.phpunit &&
231233
mv composer.json.orig composer.json
232234
fi
@@ -242,9 +244,7 @@ install:
242244
export SYMFONY_VERSION=$(git ls-remote -q --heads | grep -o '/[1-9]\.[0-9].*' | tail -n 1 | sed s/.//) &&
243245
git fetch --depth=2 origin $SYMFONY_VERSION &&
244246
git checkout -m FETCH_HEAD &&
245-
export COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
246-
else
247-
export SYMFONY_VERSION=$TRAVIS_BRANCH
247+
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
248248
fi
249249
250250
- |

0 commit comments

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