From 44e50516922270a5be9a42f67ce3ebb5fe313aa6 Mon Sep 17 00:00:00 2001 From: Junfeng Li Date: Fri, 5 Jan 2018 02:29:47 +0000 Subject: [PATCH] cleanup-binary-tags should only be run on CI linux. --- .travis.yml | 2 -- ci/before_deploy.sh | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09701e2ac..e884c631b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,8 +27,6 @@ branches: before_install: - set -e - rustup self update - - sudo apt-get install --yes python3-pip - - sudo pip3 install semver install: - source ~/.cargo/env || true diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 5ccfa8d15..cdb2c3e3f 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -37,4 +37,9 @@ for TARGET in "${TARGETS[@]}"; do package done -ci/cleanup-binary-tags.py +if [[ $TRAVIS_OS_NAME == 'linux' ]]; then + sudo apt-get install --yes python3-pip + sudo pip3 install semver + + ci/cleanup-binary-tags.py +fi