File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 54
54
echo "Missing \"branch-version \" in composer.json's \"extra \". \n" ;
55
55
exit (1 );
56
56
}
57
- $ package ->version = substr_replace ( $ package ->extra ->{'branch-version ' }, '.x-dev ' , - 4 ) ;
57
+ $ package ->version = $ package ->extra ->{'branch-version ' }. '.x-dev ' ;
58
58
$ package ->dist ['type ' ] = 'tar ' ;
59
59
$ package ->dist ['url ' ] = 'file:// ' .str_replace (DIRECTORY_SEPARATOR , '/ ' , dirname (__DIR__ ))."/ $ dir/package.tar " ;
60
60
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ install:
209
209
git fetch --depth=2 origin refs/pull/$SYMFONY_PHPUNIT_BRIDGE_PR/head
210
210
git rm -rq src/Symfony/Bridge/PhpUnit
211
211
git checkout -q FETCH_HEAD -- src/Symfony/Bridge/PhpUnit
212
- export SYMFONY_VERSION=$(cat src/Symfony/Bridge/PhpUnit/composer.json | grep '^ *"branch-version": *"[1-9]' | grep -o '[0-9.]*')
212
+ export SYMFONY_VERSION=$(cat src/Symfony/Bridge/PhpUnit/composer.json | grep '^ *"branch-version". *"[1-9]' | grep -o '[0-9.]*')
213
213
sed -i 's/"symfony\/phpunit-bridge": ".*"/"symfony\/phpunit-bridge": "'$SYMFONY_VERSION'.x@dev"/' composer.json
214
214
rm -rf .phpunit
215
215
fi
@@ -244,7 +244,7 @@ install:
244
244
git checkout -m FETCH_HEAD &&
245
245
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
246
246
else
247
- export SYMFONY_VERSION=$(cat composer.json | grep '^ *"branch-version": *"[1-9]' | grep -o '[0-9.]*')
247
+ export SYMFONY_VERSION=$(cat composer.json | grep '^ *"branch-version". *"[1-9]' | grep -o '[0-9.]*')
248
248
fi
249
249
250
250
- |
@@ -271,7 +271,7 @@ install:
271
271
272
272
- |
273
273
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number as the next one
274
- [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"branch-version": *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]] && export LEGACY=,legacy
274
+ [[ $deps = high && ${SYMFONY_VERSION%.*} != $(git show $(git ls-remote --heads | grep -FA1 /$SYMFONY_VERSION | tail -n 1):composer.json | grep '^ *"branch-version". *"[1-9]' | grep -o '[0-9]*' | head -n 1) ]] && export LEGACY=,legacy
275
275
276
276
export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
277
277
if [[ $deps ]]; then mv composer.json.phpunit composer.json; fi
You can’t perform that action at this time.
0 commit comments