8000 Merge branch '3.4' into 4.4 · symfony/symfony@f086821 · GitHub
[go: up one dir, main page]

Skip to content

Commit f086821

Browse files
Merge branch '3.4' into 4.4
* 3.4: Fix .github/build-packages.php
2 parents 58f803f + 84887f2 commit f086821

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/build-packages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
echo "Missing \"branch-version\" in composer.json's \"extra\".\n";
5555
exit(1);
5656
}
57-
$package->version = substr_replace($package->extra->{'branch-version'}, '.x-dev', -4);
57+
$package->version = $package->extra->{'branch-version'}.'.x-dev';
5858
$package->dist['type'] = 'tar';
5959
$package->dist['url'] = 'file://'.str_replace(DIRECTORY_SEPARATOR, '/', dirname(__DIR__))."/$dir/package.tar";
6060

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ install:
209209
git fetch --depth=2 origin refs/pull/$SYMFONY_PHPUNIT_BRIDGE_PR/head
210210
git rm -rq src/Symfony/Bridge/PhpUnit
211211
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.]*')
213213
sed -i 's/"symfony\/phpunit-bridge": ".*"/"symfony\/phpunit-bridge": "'$SYMFONY_VERSION'.x@dev"/' composer.json
214214
rm -rf .phpunit
215215
fi
@@ -244,7 +244,7 @@ install:
244244
git checkout -m FETCH_HEAD &&
245245
export COMPONENTS=$(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n' | sort)
246246
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.]*')
248248
fi
249249
250250
- |
@@ -271,7 +271,7 @@ install:
271271
272272
- |
273273
# 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
275275
276276
export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
277277
if [[ $deps ]]; then mv composer.json.phpunit composer.json; fi

0 commit comments

Comments
 (0)
0