From 0f8853df830d04a62e3ba15d89d28dfa900ea065 Mon Sep 17 00:00:00 2001 From: Jon Brouse Date: Sat, 15 Sep 2018 20:21:39 -0400 Subject: [PATCH] Fail builds when post deploy fails --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5e004f9..448c4fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ rvm: - 2.4.1 script: - - bundle exec jekyll build + - set -e; bundle exec jekyll build branches: only: @@ -25,6 +25,6 @@ deploy: local_dir: _site after_deploy: - - pip install --user awscli - - export PATH=$PATH:$HOME/.local/bin # put aws in the path - - aws cloudfront create-invalidation --distribution-id $CF_DISTRO_ID --paths /* + - set -e; pip install --user awscli + - set -e; export PATH=$PATH:$HOME/.local/bin # put aws in the path + - set -e; aws cloudfront create-invalidation --distribution-id $CF_DISTRO_ID --paths /*