Skip to content

Commit

Permalink
Fail builds when post deploy fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbrouse committed Sep 16, 2018
1 parent c1814b3 commit 0f8853d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rvm:
- 2.4.1

script:
- bundle exec jekyll build
- set -e; bundle exec jekyll build

branches:
only:
Expand All @@ -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 /*

0 comments on commit 0f8853d

Please sign in to comment.