From 54208f6fc37311ee24f4d54479ed9f9796858f58 Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 22 Feb 2016 14:33:46 +0100 Subject: [PATCH] travis after_success instead of deploy Signed-off-by: emile --- .travis.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index cead58b64..0283510d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,9 +23,10 @@ script: - make crossbinary - make image -deploy: - skip_cleanup: true - provider: script - script: script/deploy.sh - on: - branch: master +after_success: + if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) && + [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + script/deploy.sh + else + echo "Skipping deploy" + fi