Skip to content

Commit

Permalink
Temporarily fixing the code style failure in CI
Browse files Browse the repository at this point in the history
Looks like the shallow clone only contains the master branch. Should it contain the target branch instead?
  • Loading branch information
morozov committed Jan 4, 2018
1 parent 2c3586c commit b92f436
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ jobs:
if: type = pull_request
php: 7.2
script:
- |
if [ $TRAVIS_BRANCH != "master" ]; then
git fetch origin $TRAVIS_BRANCH;
git branch origin/$TRAVIS_BRANCH FETCH_HEAD
fi
- git merge-base origin/$TRAVIS_BRANCH $TRAVIS_PULL_REQUEST_SHA || git fetch origin +refs/pull/$TRAVIS_PULL_REQUEST/merge --unshallow
- wget https://github.com/diff-sniffer/git/releases/download/0.1.0/git-phpcs.phar
- php git-phpcs.phar origin/$TRAVIS_BRANCH...$TRAVIS_PULL_REQUEST_SHA
Expand Down

0 comments on commit b92f436

Please sign in to comment.