#!/bin/bash set -o nounset -o errexit -o pipefail # Run our target to dep ensure and yarn install everything make ensure # Ensure the working tree is clean (make ensure may have updated lock files) $(go env GOPATH)/src/github.com/pulumi/scripts/ci/check-worktree-is-clean.sh # Set stdout back to blocking to avoid problems writing large outputs. # https://github.com/pulumi/pulumi-ppc/issues/176 python -c 'import fcntl, os, sys; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); print("stdout was " + ("nonblocking" if flags & os.O_NONBLOCK else "blocking")); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags & ~os.O_NONBLOCK)'