mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist: Recall build_and_test.sh after rebase if it was changed
This commit is contained in:
parent
c239e359f6
commit
77bf5277f6
10
dist/tools/travis-scripts/build_and_test.sh
vendored
10
dist/tools/travis-scripts/build_and_test.sh
vendored
@ -27,6 +27,7 @@ then
|
||||
if [ "$BUILDTEST_MCU_GROUP" == "static-tests" ]
|
||||
then
|
||||
RESULT=0
|
||||
RECALL="$1"
|
||||
|
||||
if git diff master HEAD -- .travis.yml &> /dev/null; then
|
||||
# check if .travis.yml was changed in the current PR and skip if so
|
||||
@ -43,6 +44,15 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$RECALL" != "recall" ]; then
|
||||
if git diff master HEAD -- "$0" &> /dev/null; then
|
||||
git rebase master || git rebase --abort
|
||||
|
||||
"$0" "recall"
|
||||
exit $?
|
||||
fi
|
||||
fi
|
||||
|
||||
git rebase master || git rebase --abort
|
||||
RESULT=$(set_result $? $RESULT)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user