mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tools/ci.sh: Use a better default reference ref in code_size_build.
Now the default reference commit is the first parent of the selected commit, instead of the first parent of HEAD. Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
committed by
Damien George
parent
3bea897073
commit
6f4fd6aed9
@@ -98,8 +98,8 @@ function ci_code_size_build {
|
||||
# the code size impact would be if we merged this PR. During CI we are at a merge commit,
|
||||
# so this tests the merged PR against its merge base.
|
||||
# Override the refs by setting REFERENCE and/or COMPARISON in the environment before invoking ci.
|
||||
: ${REFERENCE:=$(git rev-parse --short HEAD^1)}
|
||||
: ${COMPARISON:=$(git rev-parse --short HEAD)}
|
||||
: ${REFERENCE:=$(git rev-parse --short ${COMPARISON}^1)}
|
||||
|
||||
echo "Comparing sizes of reference ${REFERENCE} to ${COMPARISON}..."
|
||||
git log --oneline $REFERENCE..$COMPARISON
|
||||
|
||||
Reference in New Issue
Block a user