mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 00:17:37 +01:00
73380f5057
GitOrigin-RevId: 10829de36a7ecdc04aca668ae5f3884f0b4ee164
19 lines
698 B
Bash
Executable File
19 lines
698 B
Bash
Executable File
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
|
. "$DIR/prelude.sh"
|
|
|
|
cd src
|
|
|
|
set -o errexit
|
|
set -o verbose
|
|
|
|
activate_venv
|
|
GRAPH_FILE=$(find build -name "libdeps.graphml")
|
|
python buildscripts/libdeps/analyzer_unittests.py
|
|
python buildscripts/libdeps/gacli.py --graph-file $GRAPH_FILE > results.txt
|
|
python buildscripts/libdeps/gacli.py --graph-file $GRAPH_FILE --lint= --bazel-order > bazel_order.txt
|
|
python buildscripts/libdeps/gacli.py --graph-file $GRAPH_FILE --lint= --bazel-order-core > bazel_order_core.txt
|
|
gzip $GRAPH_FILE
|
|
mv $GRAPH_FILE.gz .
|
|
targets_converted=$(grep "Targets Converted:" bazel_order.txt | cut -d":" -f 2)
|
|
if ((targets_converted < "50")); then exit 1; fi
|