Package com.atlassian.jgitflow.core

Examples of com.atlassian.jgitflow.core.JGitFlow.releaseStart()


        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        git.branchCreate().setName(flow.getReleaseBranchPrefix() + "1.0").call();

        flow.releaseStart("1.0").call();
    }

    @Test(expected = TagExistsException.class)
    public void startReleaseWithExistingLocalTag() throws Exception
    {
View Full Code Here


        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        flow.releaseStart("1.0").call();
    }

    @Test(expected = TagExistsException.class)
    public void startReleaseWithExistingLocalPrefixedTag() throws Exception
    {
View Full Code Here

        List<Ref> refs = git.tagList().call();
        String name = refs.get(0).getName();
       
        assertEquals(Constants.R_TAGS + "vtag/1.0",name);

        flow.releaseStart("1.0").call();
    }

    @Test(expected = TagExistsException.class)
    public void startReleaseWithExistingRemoteTagAndFetch() throws Exception
    {
View Full Code Here

        git.push().setRemote("origin").add("develop").call();

        //add the remote tag
        remoteGit.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        flow.releaseStart("1.0").setFetch(true).call();

    }

    @Test
    public void startReleaseWithExistingRemoteTagNoFetch() throws Exception
View Full Code Here

        git.push().setRemote("origin").add("develop").call();

        //add the remote tag
        remoteGit.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        flow.releaseStart("1.0").call();

        assertEquals(flow.getReleaseBranchPrefix() + "1.0", git.getRepository().getBranch());

    }
View Full Code Here

        //change the file
        FileUtils.writeStringToFile(junkFile, "I am junk again");
       
        try
        {
            flow.releaseStart("1.0").call();
        }
        catch (DirtyWorkingTreeException e)
        {
            assertEquals("Working tree has uncommitted changes", e.getMessage());
            throw e;
View Full Code Here

        File junk2File = new File(git.getRepository().getWorkTree(), "junk2.txt");
        FileUtils.writeStringToFile(junk2File, "I am junk 2");

        try
        {
            flow.releaseStart("1.0").call();
        }
        catch (DirtyWorkingTreeException e)
        {
            assertEquals("Working tree has untracked files", e.getMessage());
            throw e;
View Full Code Here

        FileUtils.writeStringToFile(junk2File, "I am junk 2");
        git.add().addFilepattern(junk2File.getName()).call();

        try
        {
            flow.releaseStart("1.0").call();
        }
        catch (DirtyWorkingTreeException e)
        {
            assertEquals("Working tree has uncommitted changes", e.getMessage());
            throw e;
View Full Code Here

        File junk2File = new File(git.getRepository().getWorkTree(), "junk2.txt");
        FileUtils.writeStringToFile(junk2File, "I am junk 2");

        try
        {
            flow.releaseStart("1.0").call();
        }
        catch (DirtyWorkingTreeException e)
        {
            assertEquals("Working tree has uncommitted changes and untracked files", e.getMessage());
            throw e;
View Full Code Here

        //create a new file
        File junk2File = new File(git.getRepository().getWorkTree(), "junk2.txt");
        FileUtils.writeStringToFile(junk2File, "I am junk 2");
       
        flow.releaseStart("1.0").setAllowUntracked(true).call();

    }

    @Test
    public void startReleaseFromSpecificCommit() throws Exception
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.