pulumi/build/travis/ensure-dependencies
Matt Ellis 9bf6c976bc Install fixed versions of our tools
For some tools we used, like `dep` and `gometalinter` we were just
calling `go install` which caused us to pick up whatever was in `HEAD`
at that time. Now, we move to a model where we install fixed versions,
which will change per milestone.

While doing this, I changed the way our .travis.yml file runs
everything to move as much as possible out into scripts and do so in a
way that allows us to share as much common logic across our
repositories.
2018-02-20 11:50:08 -08:00

12 lines
628 B
Bash
Executable file

#!/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/home/scripts/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)'