Skip to content
Snippets Groups Projects
Commit e645ea0c authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

Merge branch 'ci-deckard-check' into 'master'

ci: check whether Deckard submodule commit is present on master

See merge request !1038
parents 38f7483c e5c2f2ab
1 merge request!1038ci: check whether Deckard submodule commit is present on master
Pipeline #67340 failed with stages
in 1 hour, 5 minutes, and 52 seconds
......@@ -168,6 +168,12 @@ build:darwin:
script:
- ci/travis.py ${CI_COMMIT_REF_NAME}
deckard_commit:
<<: *test_nodep
script:
- ci/deckard_commit_check.sh
allow_failure: true
deckard:
<<: *test_flaky
tags:
......
DECKARD_COMMIT=$(git ls-tree HEAD:tests/integration/ | grep commit | grep deckard | cut -f1 | cut -f3 '-d ')
DECKARD_PATH="tests/integration/deckard"
pushd $DECKARD_PATH > /dev/null
if git merge-base --is-ancestor $DECKARD_COMMIT origin/master; then
echo "Deckard submodule commit is on in its master branch. All good in the hood."
exit 0
else
echo "Deckard submodule commit $DECKARD_COMMIT is not in Deckard's master branch."
echo "This WILL cause CI breakages so make sure your changes in Deckard are merged"
echo "or point the submodule to another commit."
exit 1
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment