github.phpd.cn/thought-machine/please@v12.2.0+incompatible/tools/misc/plz_ci.sh (about) 1 #!/bin/bash 2 # 3 # This script implements an example CI flow using plz, which will perform an exhaustive diff 4 # of the build graph against master and run all targets that have changed 5 # This is not affected by trivial changes (e.g. formatting changes to BUILD files). 6 7 set -eu 8 set -o pipefail 9 10 # Set $ORIGIN to a branch or tag name if you want to build vs. something other than master. 11 ORIGIN="${ORIGIN:-origin/master}" 12 git diff --name-only "$ORIGIN" | \ 13 plz query changes --since "$ORIGIN" - | \ 14 plz test -