public Solution() { NugetSpecFolder = "packaging/nuget"; SourceFolder = "src"; BuildCommand = "rake"; FastBuildCommand = "rake compile"; Mode = SolutionMode.Ripple; Groups = new List <DependencyGroup>(); Nuspecs = new List <NuspecMap>(); AddFeed(Feed.Fubu); AddFeed(Feed.NuGetV2); UseStorage(NugetStorage.Basic()); UseFeedService(Model.FeedService.Basic(this)); UseCache(NugetFolderCache.DefaultFor(this)); UsePublisher(PublishingService.For(Mode)); UseBuilder(new NugetPlanBuilder()); //_cacheLocalPath = Cache.LocalPath; RestoreSettings = new RestoreSettings(); NuspecSettings = new NuspecSettings(); References = new ReferenceSettings(); Reset(); }
public void smoke_test_the_package_validation() { var theFilename = "fubumvc.core.nuspec"; var stream = GetType() .Assembly .GetManifestResourceStream(typeof(DataMother), "FubuMVCNuspecTemplate.txt"); new FileSystem().WriteStreamToFile(theFilename, stream); var spec = NugetSpec.ReadFrom(theFilename); var service = new PublishingService(new StubSolutionFiles { RootDir = ".".ToFullPath() }); Exception<RippleFatalError>.ShouldBeThrownBy(() => service.CreatePackage(new PackageParams(spec, new SemanticVersion("1.0.0.0"), ".".ToFullPath(), false))); }
public Solution() { NugetSpecFolder = "packaging/nuget"; SourceFolder = "src"; Mode = SolutionMode.Ripple; Groups = new List <DependencyGroup>(); Nuspecs = new List <NuspecMap>(); AddFeed(Feed.Fubu); AddFeed(Feed.NuGetV2); UseStorage(NugetStorage.Basic()); UseFeedService(Model.FeedService.Basic(this)); UseCache(NugetFolderCache.DefaultFor(this)); UsePublisher(PublishingService.Basic()); UseBuilder(new NugetPlanBuilder()); UseValidator(new SolutionValidator()); RestoreSettings = new RestoreSettings(); NuspecSettings = new NuspecSettings(); Reset(); }