mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
tools/ci.sh: For code size build, fetch history of master branch only.
It's not necessary to fetch all branches. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
0a079155e4
commit
203e1d2a65
@ -42,7 +42,7 @@ function ci_code_size_build {
|
|||||||
# starts off at either the ref/pull/N/merge FETCH_HEAD, or the current branch HEAD
|
# starts off at either the ref/pull/N/merge FETCH_HEAD, or the current branch HEAD
|
||||||
git checkout -b pull_request # save the current location
|
git checkout -b pull_request # save the current location
|
||||||
git remote add upstream https://github.com/micropython/micropython.git
|
git remote add upstream https://github.com/micropython/micropython.git
|
||||||
git fetch --depth=100 upstream
|
git fetch --depth=100 upstream master
|
||||||
# build reference, save to size0
|
# build reference, save to size0
|
||||||
# ignore any errors with this build, in case master is failing
|
# ignore any errors with this build, in case master is failing
|
||||||
git checkout `git merge-base --fork-point upstream/master pull_request`
|
git checkout `git merge-base --fork-point upstream/master pull_request`
|
||||||
|
Loading…
Reference in New Issue
Block a user