public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.1.0.0") .Add("FubuCore", "1.2.0.0"); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", sln => { sln.LocalDependency("FubuCore", "1.1.0.0"); sln.ProjectDependency("Test1", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("FubuCore"), Operation = OperationType.Update, ForceUpdates = false }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theCacheFeed = new Feed("file://cache"); theFileSystemFeed = new Feed("file://feed", UpdateMode.Float); FeedScenario.Create(scenario => { scenario.For(theCacheFeed) .Add("Dependency1", "1.0.0.0"); scenario.For(theFileSystemFeed) .Add("Dependency1", "1.1.0.0"); scenario.For(Feed.NuGetV2) .Add("Dependency1", "1.0.23.0"); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("Dependency1", "1.1.0.0", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); theSolution.ClearFeeds(); theSolution.AddFeed(theFileSystemFeed); theSolution.AddFeed(Feed.NuGetV2); theSolution.UseCache(new InMemoryNugetCache(theCacheFeed)); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("Dovetail.SDK", "3.3.0.23", UpdateMode.Fixed); test.ProjectDependency("Test", "Dovetail.SDK"); test.LocalDependency("Dovetail.SDK", "3.2.10.27"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("Dovetail.SDK", "3.2.10.27") .Add("Dovetail.SDK", "3.3.0.23"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("NServiceBus.WebSphereMQ", test => { test.SolutionDependency("NServiceBus.Interfaces", "4.0.0.0", UpdateMode.Float); }); scenario.AddCachedNuget("NServiceBus.Interfaces", "4.0.0.0-unstable3041"); }); nServiceBus = new Feed("http://builds.nservicebus.com/guestAuth/app/nuget/v1/FeedService.svc", UpdateMode.Float, NugetStability.Anything); theSolution = theScenario.Find("NServiceBus.WebSphereMQ"); theSolution.ClearFeeds(); theSolution.AddFeed(nServiceBus); FeedScenario.Create(scenario => { scenario.For(nServiceBus) .Add("NServiceBus.Interfaces", "4.0.0.0-beta0002"); }); NugetFolderCache.DisableValidation(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuTransportation", "0.9.0.1", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("FubuTransportation", "0.9.0.1") .Add("FubuTransportation", "0.9.1.0"); scenario .For(theSolution.Cache.ToFeed()) .Add("FubuTransportation", "0.9.0.1"); }); RippleOperation .With(theSolution) .Execute<UpdateInput, UpdateCommand>(input => { input.NugetFlag = "FubuTransportation"; }); }
public void SetUp() { FeedScenario.Create(scenario => scenario.For(Feed.Fubu).Add("fubu", "1.2.0.0")); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("fubu", "1.0.0.1", UpdateMode.Fixed); test.LocalDependency("fubu", "1.0.0.1"); }); }); theSolution = theScenario.Find("Test"); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("fubu"), Operation = OperationType.Update, ForceUpdates = false }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed); test.ProjectDependency("Test", "structuremap"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("structuremap", "2.6.4.54"); scenario.For(Feed.NuGetV2) .Add("structuremap", "2.6.3"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", fubumvc => { }); }); theSolution = theScenario.Find("Test"); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuMVC.Core", "1.0.0.0", UpdateMode.Float); test.ProjectDependency("Test", "FubuMVC.Core"); }); }); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.1.0.0") .Add("Bottles", "1.0.0.5") .Add("FubuMVC.Core", "1.0.0.0") .ConfigureRepository(fubu => { fubu.ConfigurePackage("FubuMVC.Core", "1.0.0.0", mvc => { mvc.DependsOn("FubuCore"); mvc.DependsOn("Bottles"); }); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <FixInput, FixCommand>(); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", sln => { sln.LocalDependency("FubuCore", "1.1.0.0"); sln.ProjectDependency("Test1", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(theSolution.Cache.ToFeed()) .Add("FubuCore", "1.1.0.0") .Add("FubuCore", "1.2.0.0"); scenario.Offline(); }); theBuilder = new NugetPlanBuilder(); theRequest = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("FubuCore"), Operation = OperationType.Update, ForceUpdates = false }; }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("FubuCore", test => { // No, I don't like this name more. I'm just making it complicated test.Publishes("FubuFoundation", x => x.Assembly("FubuCore.dll")); test.Publishes("FubuCore.Interfaces", x => x.Assembly("FubuCore.Interfaces.dll", "FubuCore")); }); }); theOutputDir = theScenario.CreateDirectory("output"); theSolution = theScenario.Find("FubuCore"); theSolution.AddNuspec(new NuspecMap { PackageId = "FubuCore.Interfaces", PublishedBy = "FubuCore" }); theSolution.AddNuspec(new NuspecMap { PackageId = "FubuFoundation", PublishedBy = "FubuCore", DependsOn = "FubuCore.Interfaces" }); RippleOperation .With(theSolution) .Execute<CreatePackagesInput, CreatePackagesCommand>(x => { x.UpdateDependenciesFlag = true; x.DestinationFlag = theOutputDir; x.VersionFlag = "1.1.0.0"; }); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Fixed); test.ProjectDependency("Test", "TestNuGet"); }); }); theFeedDef = new Feed("file://C:/nugets/{branch}"); theSolution = theScenario.Find("Test"); theSolution.AddFeed(theFeedDef); FeedScenario.Create(scenario => { scenario.For("file://C:/nugets/develop") .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(x => x.BranchFlag = "develop"); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float); test.ProjectDependency("Test", "TestNuGet"); }); }); theCache = new Feed("cache"); theSolution = theScenario.Find("Test"); theSolution.UseCache(new InMemoryNugetCache(theCache)); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { FeedScenario.Create(scenario => scenario.For(Feed.Fubu).Add("FubuCore", "1.0.0.1")); FeedScenario.Create(scenario => { scenario.For(Feed.NuGetV2) .Add("TopShelf", "1.1.0.0") .Add("log4net", "1.0.0.5") .Add("log4net", "1.0.1.1") .ConfigureRepository(nuget => { nuget.ConfigurePackage("TopShelf", "1.1.0.0", topshelf => topshelf.DependsOn("log4net")); }); }); theScenario = SolutionScenario.Create(scenario => scenario.Solution("Test")); theSolution = theScenario.Find("Test"); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("TopShelf", "1.1.0.0", UpdateMode.Fixed), Operation = OperationType.Install, Project = "Test" }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theCacheFeed = new Feed("file://cache"); theFileSystemFeed = new Feed("file://feed"); FeedScenario.Create(scenario => { scenario.For(theCacheFeed) .Add("Dependency1", "1.0.0.0"); scenario.For(theFileSystemFeed) .Add("Dependency1", "1.1.0.0"); scenario.For(Feed.NuGetV2) .Add("Dependency1", "1.0.23.0"); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("Dependency1", "1.1.0.0", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); theSolution.ClearFeeds(); theSolution.AddFeed(theFileSystemFeed); theSolution.AddFeed(Feed.NuGetV2); theSolution.UseCache(new InMemoryNugetCache(theCacheFeed)); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuMVC.Core", "1.0.0.0", UpdateMode.Float); test.ProjectDependency("Test", "FubuMVC.Core"); }); }); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.1.0.0") .Add("Bottles", "1.0.0.5") .Add("FubuMVC.Core", "1.0.0.0") .ConfigureRepository(fubu => { fubu.ConfigurePackage("FubuMVC.Core", "1.0.0.0", mvc => { mvc.DependsOn("FubuCore"); mvc.DependsOn("Bottles"); }); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute<FixInput, FixCommand>(); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuTransportation", "0.9.0.1", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("FubuTransportation", "0.9.0.1") .Add("FubuTransportation", "0.9.1.0"); scenario .For(theSolution.Cache.ToFeed()) .Add("FubuTransportation", "0.9.0.1"); }); RippleOperation .With(theSolution) .Execute <UpdateInput, UpdateCommand>(input => { input.NugetFlag = "FubuTransportation"; }); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float); test.ProjectDependency("Test", "TestNuGet"); test.LocalDependency("TestNuGet", "1.0.0.0"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { // Defacto a float test.ProjectDependency("Test", "Spark"); }); }); theCache = new Feed("cache"); theSolution = theScenario.Find("Test"); theSolution.UseCache(new InMemoryNugetCache(theCache)); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("Spark", "1.0.0.0"); scenario.For(Feed.NuGetV2) .Add("Spark", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuCore", "1.2.0.0", UpdateMode.Float); test.SolutionDependency("UnneededAnywhereButHere", "1.2.0.0", UpdateMode.Float); test.ProjectDependency("Test1", "FubuCore"); test.ProjectDependency("Test1", "UnneededAnywhereButHere"); test.ProjectDependency("Test2", "FubuCore"); test.LocalDependency("FubuCore", "1.2.0.0"); test.LocalDependency("UnneededAnywhereButHere", "1.2.0.0"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "FubuCore", ProjectFlag = "Test1" }); RippleOperation .With(theSolution) .Execute <RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "UnneededAnywhereButHere", ProjectFlag = "Test1" }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuTransportation", "0.9.0.0", UpdateMode.Float); test.LocalDependency("FubuTransportation", "0.9.0.0"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("FubuTransportation", "0.9.0.1") .ThrowWhenSearchingFor("FubuTransportation", "0.9.0.1", new InvalidOperationException("DNS error?")); scenario .For(Feed.NuGetV2) .Add("FubuTransportation", "0.9.0.1"); }); }
public void SetUp() { FeedScenario.Create(scenario => scenario.For(Feed.Fubu).Add("fubu", "1.0.0.1")); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("fubu", "1.0.0.1", UpdateMode.Float); test.LocalDependency("fubu", "1.0.0.1"); }); }); theSolution = theScenario.Find("Test"); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("fubu", UpdateMode.Float), Operation = OperationType.Install }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuTransportation", "0.9.0.0", UpdateMode.Float); test.LocalDependency("FubuTransportation", "0.9.0.0"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("FubuTransportation", "0.9.0.1") .ThrowWhenSearchingFor("FubuTransportation", "0.9.0.1", new InvalidOperationException("DNS error?")) .ConfigureRepository(fubu => fubu.ConfigurePackage("FubuTransportation", "0.9.0.1", x => x.DependsOn("FubuCore"))); scenario .For(Feed.NuGetV2) .Add("FubuTransportation", "0.9.0.1") .Add("FubuCore", "1.1.0.0") .ConfigureRepository(nuget => nuget.ConfigurePackage("FubuTransportation", "0.9.0.1", x => x.DependsOn("FubuCore"))); }); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuCore", "1.2.0.0", UpdateMode.Float); test.SolutionDependency("FubuLocalization", "1.1.0.0", UpdateMode.Float); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test", "FubuLocalization"); test.LocalDependency("FubuCore", "1.2.0.0"); test.LocalDependency("FubuLocalization", "1.2.0.0"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute<RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "FubuCore"}); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed); test.ProjectDependency("Test", "structuremap"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("structuremap", "2.6.4.54"); scenario.For(Feed.NuGetV2) .Add("structuremap", "2.6.3"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => scenario.Solution("Test")); theSolution = theScenario.Find("Test"); var cache = theSolution.Cache.ToFeed(); FeedScenario.Create(scenario => { scenario.For(cache).Add("FubuCore", "1.0.0.1"); scenario.Offline(); }); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("FubuCore", "1.0.0.1", UpdateMode.Fixed), Operation = OperationType.Install, Project = "Test" }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float); test.ProjectDependency("Test", "TestNuGet"); test.LocalDependency("TestNuGet", "1.0.0.0"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Fixed); test.ProjectDependency("Test", "TestNuGet"); }); }); theFeedDef = new Feed("file://C:/nugets/{branch}"); theSolution = theScenario.Find("Test"); theSolution.AddFeed(theFeedDef); FeedScenario.Create(scenario => { scenario.For("file://C:/nugets/develop") .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(x => x.BranchFlag = "develop"); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.NuGetV2) .Add("FubuCore", "1.0.0.0") .Add("FubuCore.Docs", "1.0.0.0") .Add("log4net", "1.0.0.5") .Add("log4net", "1.0.1.1"); scenario.For(Feed.Fubu) .Add("FubuCore", "1.0.0.100") .Add("FubuCore.Docs", "1.0.0.100") .Add("log4net", "1.0.0.5") .Add("log4net", "1.0.1.1"); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Bottles", bottles => { bottles.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Fixed); }); }); theSolution = theScenario.Find("Bottles"); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.NuGetV2) .Add("FubuCore", "1.2.0.0-alpha"); }); theScenario = SolutionScenario.Create(scenario => scenario.Solution("Test")); theSolution = theScenario.Find("Test"); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("FubuCore", "1.2.0.0", UpdateMode.Fixed) { NugetStability = NugetStability.Anything }, Operation = OperationType.Install, Project = "Test" }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { // Defacto a float test.ProjectDependency("Test", "Spark"); }); }); theCache = new Feed("cache"); theSolution = theScenario.Find("Test"); theSolution.UseCache(new InMemoryNugetCache(theCache)); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("Spark", "1.0.0.0"); scenario.For(Feed.NuGetV2) .Add("Spark", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float); test.ProjectDependency("Test", "TestNuGet"); }); }); theCache = new Feed("cache"); theSolution = theScenario.Find("Test"); theSolution.UseCache(new InMemoryNugetCache(theCache)); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("Dovetail.SDK", "3.3.0.23", UpdateMode.Fixed); test.ProjectDependency("Test", "Dovetail.SDK"); test.LocalDependency("Dovetail.SDK", "3.2.10.27"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("Dovetail.SDK", "3.2.10.27") .Add("Dovetail.SDK", "3.3.0.23"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.Publishes("MyProject"); test.Publishes("AnotherProject"); test.SolutionDependency("Bottles", "1.1.0.0", UpdateMode.Fixed); test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Float); test.SolutionDependency("FubuLocalization", "1.8.0.0", UpdateMode.Fixed); test.LocalDependency("Bottles", "1.1.0.255"); test.LocalDependency("FubuCore", "1.0.1.244"); test.LocalDependency("FubuLocalization", "1.8.0.0"); test.ProjectDependency("MyProject", "Bottles"); test.ProjectDependency("MyProject", "FubuCore"); test.ProjectDependency("MyProject", "FubuLocalization"); test.ProjectDependency("AnotherProject", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); theSolution.FindProject("AnotherProject").AddProjectReference(theSolution.FindProject("MyProject")); var templates = new NuspecTemplateFinder().Templates(theSolution); var current = templates.FindByProject("AnotherProject"); theContext = new NuspecTemplateContext(current, templates, theSolution, new SemanticVersion("1.1.0.0")); theTokens = new ProjectDependenciesSource().DetermineDependencies(theContext); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("FubuCore", test => { // No, I don't like this name more. I'm just making it complicated test.Publishes("FubuFoundation", x => x.Assembly("FubuCore.dll")); test.Publishes("FubuCore.Interfaces", x => x.Assembly("FubuCore.Interfaces.dll", "FubuCore")); }); }); theOutputDir = theScenario.CreateDirectory("output"); theSolution = theScenario.Find("FubuCore"); theSolution.AddNuspec(new NuspecMap { PackageId = "FubuCore.Interfaces", PublishedBy = "FubuCore" }); theSolution.AddNuspec(new NuspecMap { PackageId = "FubuFoundation", PublishedBy = "FubuCore", DependsOn = "FubuCore.Interfaces" }); RippleOperation .With(theSolution) .Execute <CreatePackagesInput, CreatePackagesCommand>(x => { x.UpdateDependenciesFlag = true; x.DestinationFlag = theOutputDir; x.VersionFlag = "1.1.0.0"; }); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("Serenity", "1.1.0.0") .Add("Serenity", "1.2.0.0") .ConfigureRepository(fubu => { fubu.ConfigurePackage("Serenity", "1.1.0.0", serenity => serenity.DependsOn("WebDriver", "1.1.0.0")); fubu.ConfigurePackage("Serenity", "1.2.0.0", serenity => { serenity.DependsOn("WebDriver", "1.2.0.0"); serenity.DependsOn("Something"); serenity.DependsOn("SomethingElse", "0.9.9.9"); }); }); scenario.For(Feed.NuGetV2) .Add("Something", "1.0.0.5") .Add("SomethingElse", "0.9.9.9") .Add("WebDriver", "1.1.0.0") .Add("WebDriver", "1.2.0.0"); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", sln => { sln.SolutionDependency("WebDriver", "1.1.0.0", UpdateMode.Fixed); sln.SolutionDependency("Serenity", "1.1.0.0", UpdateMode.Float); sln.LocalDependency("Serenity", "1.1.0.0"); sln.ProjectDependency("Test1", "Serenity"); sln.ProjectDependency("Test1", "WebDriver"); sln.ProjectDependency("Test2", "Serenity"); sln.ProjectDependency("Test2", "WebDriver"); }); }); theSolution = theScenario.Find("Test"); theBuilder = new NugetPlanBuilder(); var request = new NugetPlanRequest { Solution = theSolution, Dependency = new Dependency("Serenity"), Operation = OperationType.Update, ForceUpdates = true }; thePlan = theBuilder.PlanFor(request); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed); test.ProjectDependency("Test", "structuremap"); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("structuremap", "2.6.4.54") .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); scenario.For(Feed.NuGetV2) .Add("structuremap", "2.6.3"); }); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution, resetSolution: true) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed); test.ProjectDependency("Test", "structuremap"); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("structuremap", "2.6.4.54") .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); scenario.For(Feed.NuGetV2) .Add("structuremap", "2.6.3"); }); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution, resetSolution: true) .Execute <RestoreInput, RestoreCommand>(); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.NuGetV2) .Add("RavenDB.Client", "2.0.2330") .Add("RavenDB.Database", "2.0.2330") .Add("RavenDB.Embedded", "2.0.2330") .Add("RavenDB.Server", "2.0.2330") .ConfigureRepository(nuget => { nuget.ConfigurePackage("RavenDB.Embedded", "2.0.2330", embedded => { embedded.DependsOn("RavenDB.Client", "2.0.2330"); embedded.DependsOn("RavenDB.Database", "2.0.2330"); }); }); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", sln => { sln.LocalDependency("RavenDB.Client", "2.0.2315"); sln.LocalDependency("RavenDB.Database", "2.0.2315"); sln.LocalDependency("RavenDB.Embedded", "2.0.2315"); sln.LocalDependency("RavenDB.Server", "2.0.2315"); sln.SolutionDependency("RavenDB.Client", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Database", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Embedded", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Server", "2.0.2315", UpdateMode.Fixed); sln.ProjectDependency("Test", "RavenDB.Client"); sln.ProjectDependency("Test", "RavenDB.Database"); sln.ProjectDependency("Test", "RavenDB.Embedded"); sln.ProjectDependency("Test", "RavenDB.Server"); sln.GroupDependencies("RavenDB.Client", "RavenDB.Database", "RavenDB.Embedded", "RavenDB.Server"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <UpdateInput, UpdateCommand>(input => { input.NugetFlag = "RavenDB.Client"; }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.NuGetV2) .Add("RavenDB.Client", "2.0.2330") .Add("RavenDB.Database", "2.0.2330") .Add("RavenDB.Embedded", "2.0.2330") .Add("RavenDB.Server", "2.0.2330") .ConfigureRepository(nuget => { nuget.ConfigurePackage("RavenDB.Embedded", "2.0.2330", embedded => { embedded.DependsOn("RavenDB.Client", "2.0.2330"); embedded.DependsOn("RavenDB.Database", "2.0.2330"); }); }); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", sln => { sln.LocalDependency("RavenDB.Client", "2.0.2315"); sln.LocalDependency("RavenDB.Database", "2.0.2315"); sln.LocalDependency("RavenDB.Embedded", "2.0.2315"); sln.LocalDependency("RavenDB.Server", "2.0.2315"); sln.SolutionDependency("RavenDB.Client", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Database", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Embedded", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Server", "2.0.2315", UpdateMode.Fixed); sln.ProjectDependency("Test", "RavenDB.Client"); sln.ProjectDependency("Test", "RavenDB.Database"); sln.ProjectDependency("Test", "RavenDB.Embedded"); sln.ProjectDependency("Test", "RavenDB.Server"); sln.GroupDependencies("RavenDB.Client", "RavenDB.Database", "RavenDB.Embedded", "RavenDB.Server"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute<UpdateInput, UpdateCommand>(input => { input.NugetFlag = "RavenDB.Client"; }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Bottles", bottles => { bottles.LocalDependency("FubuCore", "1.0.0.0"); bottles.ProjectDependency("Bottles", "FubuCore"); }); }); theSolution = theScenario.Find("Bottles"); }
public void throws_error_and_leaves_config_alone() { Exception <RippleFatalError> .ShouldBeThrownBy(() => { RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(); }); theSolution = theScenario.Find("Test"); theSolution.Dependencies.Find("Bottles").Version.ShouldEqual(""); }
public void SetUp() { theUnavailableFeed = new Feed("unavailable"); anotherFloatingFeed = new Feed("floated"); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("Bottles", "0.9.0.1", UpdateMode.Float); test.SolutionDependency("FubuJson", "0.9.0.6", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); theSolution.ClearFeeds(); theSolution.AddFeed(theUnavailableFeed); theSolution.AddFeed(Feed.Fubu); theSolution.AddFeed(anotherFloatingFeed); FeedScenario.Create(scenario => { scenario .For(theSolution.Cache.ToFeed()) .Add("Bottles", "0.8.0.123") .Add("FubuJson", "0.9.0.1"); scenario .For(theUnavailableFeed) .ThrowWhenSearchingFor("FubuJson", new InvalidOperationException("DNS Error")); scenario .For(Feed.Fubu) .Add("Bottles", "0.9.0.1") .Add("FubuJson", "0.9.0.333"); scenario .For(anotherFloatingFeed) .Add("Test", "1.0.0.0"); scenario .For(Feed.NuGetV2) .Add("FubuTransportation", "0.9.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(x => x.VerboseFlag = true); }
public void SetUp() { theUnavailableFeed = new Feed("unavailable"); anotherFloatingFeed = new Feed("floated"); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("Bottles", "0.9.0.1", UpdateMode.Float); test.SolutionDependency("FubuJson", "0.9.0.6", UpdateMode.Float); }); }); theSolution = theScenario.Find("Test"); theSolution.ClearFeeds(); theSolution.AddFeed(theUnavailableFeed); theSolution.AddFeed(Feed.Fubu); theSolution.AddFeed(anotherFloatingFeed); FeedScenario.Create(scenario => { scenario .For(theSolution.Cache.ToFeed()) .Add("Bottles", "0.8.0.123") .Add("FubuJson", "0.9.0.1"); scenario .For(theUnavailableFeed) .ThrowWhenSearchingFor("FubuJson", new InvalidOperationException("DNS Error")); scenario .For(Feed.Fubu) .Add("Bottles", "0.9.0.1") .Add("FubuJson", "0.9.0.333"); scenario .For(anotherFloatingFeed) .Add("Test", "1.0.0.0"); scenario .For(Feed.NuGetV2) .Add("FubuTransportation", "0.9.0.1"); }); RippleOperation .With(theSolution) .Execute <RestoreInput, RestoreCommand>(x => x.VerboseFlag = true); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution) .Execute<BatchInstallInput, BatchInstallCommand>(input => { input.FileFlag = theFile; }); }
public void SetUp() { FeedScenario.Create(scenario => { scenario .For(Feed.Fubu) .Add("Serenity", "1.0.0.2") .Add("Something", "1.0.0.0") .Add("FubuCore", "1.0.0.1") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("Serenity", "1.0.0.2", serenity => { serenity.DependsOn("WebDriver", "1.2.0.0"); serenity.DependsOn("Something"); serenity.DependsOn("SomethingElse", "0.9.9.9"); }); }); scenario.For(Feed.NuGetV2) .Add("WebDriver", "1.2.0.0") .Add("SomethingElse", "0.9.9.9"); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.LocalDependency("WebDriver", "1.1.0.0"); test.ProjectDependency("Test", "Serenity"); test.ProjectDependency("Test", "WebDriver"); test.ProjectDependency("Test2", "FubuCore"); test.SolutionDependency("WebDriver", "1.1.0.0", UpdateMode.Fixed); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute<UpdateInput, UpdateCommand>(input => { input.NugetFlag = "Serenity"; input.ForceFlag = true; }); }