-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
16 lines (13 loc) · 997 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
sanity:
./generate-fbc.sh --comment-graph-all
./generate-fbc.sh --render-all
git diff --exit-code --quiet
sanity-brew:
./generate-fbc.sh --comment-graph-all brew
./generate-fbc.sh --render-all brew
git diff --exit-code --quiet
check-prod:
for v in $$(git diff --name-only --name-only HEAD HEAD~1 | grep graph.yaml); do echo "Comparing $${v%/*} with prod"; ./generate-fbc.sh --init-basic "$${v%/*}" yq; done
git diff HEAD --no-ext-diff --patience --unified=0 -a --no-prefix "v4.*/graph.yaml" | grep -e "^+" | grep -v -e "^+++" | grep -v "skipRange: <v4.99.0" | grep -v "skipRange: <4.99.0" | awk '/v4.99.0-/ {skip=2} skip {skip--; next} {print}'
NUMLL=$$(git diff HEAD --no-ext-diff --patience --unified=0 -a --no-prefix "v4.*/graph.yaml" | grep -e "^+" | grep -v -e "^+++" | grep -v "skipRange: <v4.99.0" | grep -v "skipRange: <4.99.0" | awk '/v4.99.0-/ {skip=2} skip {skip--; next} {print}' | wc -l) && echo "Lost Lines: $$NUMLL" && exit $$NUMLL
.PHONY: sanity sanity-brew check-prod