Ejemplo n.º 1
0
        public override bool ProcessExample()
        {
            if (ExampleInfoController.IsPlatformEmpty)
            {
                string invalidPlatformMessage = "Please ensure that the example platform is specified in the repositofy description in the following format: Platform:PlatformName";
                GitHubHelper.AddPullRequestComment(TestedRepoOwner, TestedRepoName, PullRequestNumber, invalidPlatformMessage);
                GitHubHelper.ClosePullRequest(TestedRepoOwner, TestedRepoName, PullRequestNumber);
                Logger.Error(invalidPlatformMessage);
                return(false);
            }
            if (ExampleInfoController.IsDevExtremePlatformExample)
            {
                UpdateResultExampleRepo(false);
                return(true);
            }
            bool testResult = false;

            try {
                testResult = ProcessExampleCore();
            }
            finally {
                FileSystemHelper.SafeDeleteDirectory(rootTempDirectoryPath);
            }
            return(testResult);
        }