diff --git a/.travis.yml b/.travis.yml
index d283f91..4040374 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,11 +9,11 @@ script:
doc
after_script:
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
-after_success: |
- [ $TRAVIS_BRANCH = master ] &&
- [ $TRAVIS_PULL_REQUEST = false ] &&
- cargo doc &&
- echo '' > doc/index.html &&
- sudo pip install ghp-import &&
- ghp-import -n doc &&
- git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
+after_success:
+- [ $TRAVIS_BRANCH = master ] || exit
+- [ $TRAVIS_PULL_REQUEST = false ] || exit
+- cargo doc
+- echo '' > doc/index.html
+- sudo pip install ghp-import
+- ghp-import -n doc
+- git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages