예제 #1
0
        public static GitDeploymentResult GitDeploy(this ApplicationManager appManager, string localRepoPath, string localBranchName = "master", string remoteBranchName = "master")
        {
            GitDeploymentResult result = Git.GitDeploy(appManager.DeploymentManager, appManager.ServiceUrl, localRepoPath, appManager.GitUrl, localBranchName, remoteBranchName);

            string traceFile = String.Format("git-push-{0:MM-dd-H-mm-ss}.txt", DateTime.Now);

            appManager.Save(traceFile, result.GitTrace);

            return(result);
        }
            public virtual void GitVerify(GitDeploymentResult result, Setting setting)
            {
                Assert.Contains(BuilderTrace, result.GitTrace);

                foreach (string text in setting.ContainStrings)
                {
                    Assert.Contains(text, result.GitTrace);
                }

                foreach (string text in setting.NotContainStrings)
                {
                    Assert.DoesNotContain(text, result.GitTrace);
                }
            }