From 865c49d65cb25dd4e58649be3e20e5e5d7d7db06 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 1 May 2018 21:02:18 -0700 Subject: [PATCH] fix: fail if dirty files This will fail the build whenever it finishes with a dirt index. Closes #661 --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4b133bf91..ed15f1a7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,9 @@ script: - test -n "$TRAVIS_TAG" || go run main.go --snapshot after_success: - bash <(curl -s https://codecov.io/bash) - - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" - make static + - test -z "$(git status --porcelain)" + - test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" deploy: - deploy: provider: pages