mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: bill of materials check pass
This commit is contained in:
17
test
17
test
@@ -20,7 +20,7 @@ source ./build
|
||||
etcd_setup_gopath
|
||||
|
||||
if [ -z "$PASSES" ]; then
|
||||
PASSES="fmt dep compile build unit"
|
||||
PASSES="fmt bom dep compile build unit"
|
||||
fi
|
||||
|
||||
# Invoke ./cover for HTML output
|
||||
@@ -329,6 +329,21 @@ function fmt_pass {
|
||||
done
|
||||
}
|
||||
|
||||
function bom_pass {
|
||||
if ! which license-bill-of-materials >/dev/null; then
|
||||
return
|
||||
fi
|
||||
echo "Checking bill of materials..."
|
||||
license-bill-of-materials \
|
||||
--override-file bill-of-materials.override.json \
|
||||
github.com/coreos/etcd github.com/coreos/etcd/etcdctl >bom-now.json || true
|
||||
if ! diff bill-of-materials.json bom-now.json; then
|
||||
echo vendored licenses do not match given bill of materials
|
||||
exit 255
|
||||
fi
|
||||
rm bom-now.json
|
||||
}
|
||||
|
||||
function dep_pass {
|
||||
echo "Checking package dependencies..."
|
||||
# don't pull in etcdserver package
|
||||
|
||||
Reference in New Issue
Block a user