File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
if (4 > $ _SERVER ['argc ' ]) {
4
- echo "Usage: commit-range branch dir1 dir2 ... dirN \n" ;
4
+ echo "Usage: branch dir1 dir2 ... dirN \n" ;
5
5
exit (1 );
6
6
}
7
7
8
8
$ dirs = $ _SERVER ['argv ' ];
9
9
array_shift ($ dirs );
10
- $ range = array_shift ($ dirs );
11
10
$ branch = array_shift ($ dirs );
12
11
13
12
$ packages = array ();
14
13
$ flags = PHP_VERSION_ID >= 50400 ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE : 0 ;
15
14
16
15
foreach ($ dirs as $ dir ) {
17
- if (!`git diff --name-only $ range -- $ dir `) {
16
+ if (!`git diff --name-only $ branch ...HEAD -- $ dir `) {
18
17
continue ;
19
18
}
20
19
echo "$ dir \n" ;
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ before_install:
58
58
install :
59
59
- if [[ ! $skip ]]; then COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); fi
60
60
# Create local composer packages for each patched components and reference them in composer.json files when cross-testing components
61
- - if [[ ! $skip && $deps ]]; then php .travis.php $TRAVIS_COMMIT_RANGE $ TRAVIS_BRANCH $COMPONENTS; fi
61
+ - if [[ ! $skip && $deps ]]; then php .travis.php $TRAVIS_BRANCH $COMPONENTS; fi
62
62
# For the master branch when deps=high, the version before master is checked out and tested with the locally patched components
63
63
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then SYMFONY_VERSION=$(git ls-remote --heads | grep -o '/[1-9].*' | tail -n 1 | sed s/.//); else SYMFONY_VERSION=$(cat composer.json | grep '^ *"dev-master". *"[1-9]' | grep -o '[0-9.]*'); fi
64
64
- if [[ $deps = high && $TRAVIS_BRANCH = master ]]; then git fetch origin $SYMFONY_VERSION; git checkout -m FETCH_HEAD; COMPONENTS=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n'); ./phpunit install; fi
You can’t perform that action at this time.
0 commit comments