Merge pull request #626 from smarterclayton/speed_up_build

Build all commands at the same time
This commit is contained in:
brendandburns 2014-07-25 12:57:25 -07:00
commit 25150947c8
2 changed files with 3 additions and 6 deletions

View File

@ -25,13 +25,10 @@ source $(dirname $0)/config-go.sh
cd "${KUBE_TARGET}"
BINARIES="proxy integration apiserver controller-manager kubelet kubecfg"
BINARIES="cmd/proxy cmd/integration cmd/apiserver cmd/controller-manager cmd/kubelet cmd/kubecfg"
if [ $# -gt 0 ]; then
BINARIES="$@"
fi
for b in $BINARIES; do
echo "+++ Building ${b}"
go build "${KUBE_GO_PACKAGE}"/cmd/${b}
done
go build $(for b in $BINARIES; do echo "${KUBE_GO_PACKAGE}"/${b}; done)

View File

@ -22,7 +22,7 @@ fi
# Stop right away if the build fails
set -e
$(dirname $0)/build-go.sh integration
$(dirname $0)/build-go.sh cmd/integration
ETCD_DIR=$(mktemp -d -t kube-integration.XXXXXX)
trap "rm -rf ${ETCD_DIR}" EXIT