File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 2
2
composer.lock
3
3
phpunit.xml
4
4
.php_cs.cache
5
+ .phpunit.result.cache
5
6
composer.phar
6
7
package.tar
7
8
/packages.json
Original file line number Diff line number Diff line change @@ -181,6 +181,22 @@ before_install:
181
181
fi
182
182
183
183
install :
184
+ - |
185
+ # Install the phpunit-bridge from a PR if required
186
+ #
187
+ # To run a PR with a patched phpunit-bridge, first submit the path for the
188
+ # phpunit-bridge as a separate PR against the next feature-branch then
189
+ # uncomment and update the following line with that PR number
190
+ #SYMFONY_PHPUNIT_BRIDGE_PR=32886
191
+
192
+ if [[ $SYMFONY_PHPUNIT_BRIDGE_PR ]]; then
193
+ git fetch origin refs/pull/$SYMFONY_PHPUNIT_BRIDGE_PR/head
194
+ git rm -rq src/Symfony/Bridge/PhpUnit
195
+ git checkout -q FETCH_HEAD -- src/Symfony/Bridge/PhpUnit
196
+ SYMFONY_VERSION=$(cat src/Symfony/Bridge/PhpUnit/composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*')
197
+ sed -i 's/"symfony\/phpunit-bridge": ".*"/"symfony\/phpunit-bridge": "'$SYMFONY_VERSION'.x@dev"/' composer.json
198
+ fi
199
+
184
200
- |
185
201
# Create local composer packages for each patched components and reference them in composer.json files when cross-testing components
186
202
if [[ ! $deps ]]; then
@@ -193,6 +209,10 @@ install:
193
209
mv composer.json composer.json.phpunit &&
194
210
mv composer.json.orig composer.json
195
211
fi
212
+ if [[ $SYMFONY_PHPUNIT_BRIDGE_PR ]]; then
213
+ git rm -fq -- src/Symfony/Bridge/PhpUnit/composer.json
214
+ git diff --staged -- src/Symfony/Bridge/PhpUnit/ | git apply -R --index
215
+ fi
196
216
197
217
- |
198
218
# For the master branch, when deps=high, the version before master is checked out and tested with the locally patched components
You can’t perform that action at this time.
0 commit comments