From 7b4376dd1b4036d45f0e80fbf70a5c144d256a2d Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Sun, 28 May 2017 17:49:01 -0700 Subject: [PATCH] Push to docker hub only if the build succeeds. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index af8af4f..e72fb61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,8 +23,10 @@ before_script: - docker logs mailman-core script: - - tests/core.sh + - tests/core.sh + +after_success: + - sh .travis/deploy_dockerhub.sh after_script: - docker-compose down - - sh .travis/deploy_dockerhub.sh