From 34161680a808f2fcb430185eb091419e67a09806 Mon Sep 17 00:00:00 2001 From: Shuai Lin Date: Wed, 21 Dec 2016 16:02:49 +0800 Subject: [PATCH] Fixed travis ci yaml. --- .travis.yml | 1 - ci/ci.sh | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 71bc1bf..b3a4b5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,3 @@ install: script: - ci/ci.sh - - [[ $TRAVIS_TAG == "" ]] || ci/publish-image.sh diff --git a/ci/ci.sh b/ci/ci.sh index f1a8d6e..7fab8e7 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -18,3 +18,7 @@ sudo ./launcher start --docker-args "--memory 1g" && sleep 10 sudo ./launcher restart sudo ./launcher -v rebuild sudo ./launcher -v rebuild --docker-args "--memory 1g" + +if [[ $TRAVIS_TAG != "" ]]; then + ci/publish-image.sh +fi