예제 #1
0
        private static void PerformTests(Nightly.RunMode runMode, string arg, string decorateSrcDirName = null)
        {
            var nightly    = new Nightly(runMode, decorateSrcDirName);
            var errMessage = nightly.RunAndPost();
            var message    = string.Format("Completed {0}", arg); // Not L10N

            nightly.Finish(message, errMessage);
        }
예제 #2
0
파일: Program.cs 프로젝트: rfellers/pwiz
        private static bool PerformTests(Nightly.RunMode runMode, string arg, string decorateSrcDirName = null)
        {
            var nightly    = new Nightly(runMode, decorateSrcDirName);
            var errMessage = nightly.RunAndPost();
            var message    = string.Format(@"Completed {0}", arg);

            nightly.Finish(message, errMessage);
            return(string.IsNullOrEmpty(errMessage));
        }
예제 #3
0
파일: Program.cs 프로젝트: laeubisoft/pwiz
        private static bool PerformTests(Nightly.RunMode runMode, string arg, string decorateSrcDirName = null)
        {
            var nightly     = new Nightly(runMode, decorateSrcDirName);
            var nightlyTask = Nightly.NightlyTask;

            if (nightlyTask != null && DateTime.UtcNow.Add(nightly.TargetDuration).ToLocalTime() > nightlyTask.NextRunTime)
            {
                // Don't run, because the projected end time is after the start of the next scheduled start
                return(false);
            }
            var errMessage = nightly.RunAndPost();
            var message    = string.Format(@"Completed {0}", arg);

            nightly.Finish(message, errMessage);
            return(string.IsNullOrEmpty(errMessage));
        }