File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ install:
55
55
- php composer.phar global require --no-progress --no-scripts --no-plugins symfony/flex
56
56
- git config --global user.email ""
57
57
- 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
60
62
- php composer.phar config platform.php 5.5.9
61
63
- php composer.phar update --no-progress --ansi
62
64
- php phpunit install
65
+ - SET
63
66
64
67
test_script :
65
68
- SET X=0
Original file line number Diff line number Diff line change @@ -220,13 +220,15 @@ install:
220
220
git config --global user.email ""
221
221
git config --global user.name "Symfony"
222
222
223
+ export SYMFONY_VERSION=$(grep branch-version composer.json | grep -o '[0-9.]*')
224
+
223
225
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
225
227
else
226
228
export SYMFONY_DEPRECATIONS_HELPER=weak &&
227
229
cp composer.json composer.json.orig &&
228
230
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) &&
230
232
mv composer.json composer.json.phpunit &&
231
233
mv composer.json.orig composer.json
232
234
fi
@@ -242,9 +244,7 @@ install:
242
244
export SYMFONY_VERSION=$(git ls-remote -q --heads | grep -o '/[1-9]\.[0-9].*' | tail -n 1 | sed s/.//) &&
243
245
git fetch --depth=2 origin $SYMFONY_VERSION &&
244
246
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)
248
248
fi
249
249
250
250
- |
You can’t perform that action at this time.
0 commit comments