Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #57 from alphagov/only-release-python-2-7
Browse files Browse the repository at this point in the history
Only create release tags for Python 2.7 job
  • Loading branch information
jcbashdown committed Feb 26, 2014
2 parents ca431b6 + e77b1fa commit 520d60e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis_scripts/push_release_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ function ensure_running_in_travis_master_branch {
fi
}

function ensure_only_tagging_on_production_python_version {
if [ "${TRAVIS_PYTHON_VERSION}" != "2.7" ]; then
echo "Not release tagging for Python version ${TRAVIS_PYTHON_VERSION}"
exit 3
fi
}

function make_temp_repo_directory {
TMP_REPO_DIR=$(mktemp --directory --suffix _travis_${TRAVIS_BUILD_NUMBER})
}
Expand Down Expand Up @@ -96,6 +103,7 @@ function setup_fake_travis_environment {
TRAVIS_BRANCH="master"
TRAVIS_COMMIT="3aed87b4f7bbb62e15fef65bd9a1b27d07d6e351"
TRAVIS_BUILD_NUMBER="123456789"
TRAVIS_PYTHON_VERSION="2.7"
GH_TOKEN="${TESTING_GITHUB_TOKEN}"
}

Expand All @@ -109,6 +117,7 @@ fi


ensure_running_in_travis_master_branch
ensure_only_tagging_on_production_python_version
make_temp_repo_directory
clone_repo
make_release_tag_from_travis_build_number
Expand Down

0 comments on commit 520d60e

Please sign in to comment.