Beispiel #1
0
def tag(version):
    """ Defines tag to deploy """

    if "pydiploy_version" in env:
        fabric.api.abort(fabric.colors.red(
            "tag should be set before calling goal (ex: fab tag:master test deploy)"))
    if check_tag_exist(version):
        env.tag = version
    else:
        fabric.api.abort(fabric.colors.red(
            "tag/branch provided is not in the repository please fix this first"))
Beispiel #2
0
def tag(version):
    """ Defines tag to deploy """

    if "pydiploy_version" in env:
        fabric.api.abort(
            fabric.colors.red(
                "tag should be set before calling goal (ex: fab tag:master test deploy)"
            ))
    if check_tag_exist(version):
        env.tag = version
    else:
        fabric.api.abort(
            fabric.colors.red(
                "tag/branch provided is not in the repository please fix this first"
            ))
Beispiel #3
0
    def test_check_tag_exist(self, collect_branches, collect_tags):

        check_tag_exist(tag="master")

        check_tag_exist(tag="test")
Beispiel #4
0
    def test_check_tag_exist(self, collect_branches, collect_tags):

        check_tag_exist(tag="master")

        check_tag_exist(tag="test")