build: check compilation of each commit

Inspired by Rust Lightning's GH action :)
This commit is contained in:
Conner Fromknecht committed 2020-12-08 16:19:26 -08:00
1 parent 592a0c5699
commit dce4d2abcd
3 files changed
+35 -5

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -e
set -x
echo Testing $(git log -1 --oneline)
make unit pkg=... case=_NONE_
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [[ "$1" = "" ]]; then
echo "USAGE: $0 remote/head_branch"
echo "eg $0 upstream/master"
exit 1
fi
set -e
set -x
if [[ "$(git log --pretty="%H %D" | grep "^[0-9a-f]*.* $1")" = "" ]]; then
echo "It seems like the current checked-out commit is not based on $1"
exit 1
fi
git rebase --exec scripts/check-commit.sh $1