Check that worktree is clean before running

Without this, we miss cases where the lock files may need to be
updated and we encode a version like v0.9.5-dirty.
This commit is contained in:
Matt Ellis 2017-12-19 18:11:51 -08:00
parent 680a09a164
commit b0efb6960d

View file

@ -37,6 +37,9 @@ install:
# Clone the Pulumi-wide repo so we can use its scripts.
- git clone git@github.com:pulumi/home ${GOPATH}/src/github.com/pulumi/home
- make ensure
before_script:
# Ensure the working tree is clean (make ensure may have updated lock files)
- ${GOPATH}/src/github.com/pulumi/home/scripts/check-worktree-is-clean.sh
script:
- make travis_${TRAVIS_EVENT_TYPE} TEST_FAST_TIMEOUT=10m
notifications: