From af685f8f7a423863005cd72127cc6156d68c1ec9 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 5 Jan 2019 00:36:24 +0100 Subject: [PATCH] cibuild: check if we are running this under travis We will only build a new docker image under travis. --- scripts/cibuild.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/cibuild.py b/scripts/cibuild.py index 39917ac..b19456d 100755 --- a/scripts/cibuild.py +++ b/scripts/cibuild.py @@ -26,6 +26,7 @@ docker_username = os.environ.get("DOCKER_USERNAME") docker_password = os.environ.get("DOCKER_PASSWORD") aws_creds = os.environ.get("AWS_ACCESS_KEY_ID") +travis = os.environ.get("TRAVIS", "") travis_tag = os.environ.get("TRAVIS_TAG", "") travis_branch = os.environ.get("TRAVIS_BRANCH", "") appveyor_tag = os.environ.get("APPVEYOR_REPO_TAG_NAME", "") @@ -113,7 +114,8 @@ if branch() != "master": build_package() -build_docker() +if travis: + build_docker() aws_upload() if tag():