Skip to content

Commit

Permalink
Merge branch 'trailmax-feature/DeployOnOctopusRelase' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Oct 20, 2016
2 parents cf7cc86 + a23c2ff commit f7c8339
Show file tree
Hide file tree
Showing 10 changed files with 1,555 additions and 232 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using Cake.Common.Tools.OctopusDeploy;
using Cake.Testing.Fixtures;

namespace Cake.Common.Tests.Fixtures.Tools
{
public sealed class OctopusDeployReleaseDeployerFixture : ToolFixture<OctopusDeployReleaseDeploymentSettings>
{
internal string Server { get; set; }

internal string ApiKey { get; set; }

internal string Project { get; set; }

internal string DeployTo { get; set; }

internal string ReleaseNumber { get; set; }

public OctopusDeployReleaseDeployerFixture() : base("Octo.exe")
{
Server = "http://octopus";
ApiKey = "API-12345";
Project = "MyProject";
DeployTo = "Testing";
ReleaseNumber = "0.15.1";
}

protected override void RunTool()
{
var tool = new OctopusDeployReleaseDeployer(FileSystem, Environment, ProcessRunner, Tools);
tool.DeployRelease(Server, ApiKey, Project, DeployTo, ReleaseNumber, Settings);
}
}
}
Loading

0 comments on commit f7c8339

Please sign in to comment.