forked from confluentinc/parallel-consumer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkcompile.sh
executable file
·30 lines (21 loc) · 952 Bytes
/
checkcompile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#
# Copyright (C) 2020-2022 Confluent, Inc.
#
COMMITS=$(git log --oneline HEAD...182d13c43dec581a84c7edad962dfbd456744a64^ | cut -d " " -f 1)
testCommit() {
# COMMIT = $1
echo Checking out commit $COMMIT
git checkout $COMMIT > /dev/null 2> /dev/null
mvn compile test-compile > /dev/null 2> /dev/null
if [ $? -eq 0 ]
then
echo $COMMIT passed
else
echo $COMMIT failed
fi
}
for COMMIT in $COMMITS
do
testCommit "$COMMIT"
done