コード例 #1
0
        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();
        }
コード例 #2
0
        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)));
        }
コード例 #3
0
        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();
        }