Ejemplo n.º 1
0
        public void ShouldOnlyRunBashScriptsOnMacOrNix()
        {
            using (var tarFile = new TemporaryFile(TarGzBuilder.BuildSamplePackage("Acme.PackageBilingual", "1.0.0", false)))
            {
                var result = DeployPackage(tarFile.FilePath);
                result.AssertSuccess();

                // PreDeploy
                result.AssertOutput("hello from PreDeploy.sh");
                result.AssertNoOutput("hello from PreDeploy.ps1");

                // Deploy
                result.AssertOutput("hello from Deploy.sh");
                result.AssertNoOutput("hello from Deploy.ps1");

                // PostDeploy
                result.AssertOutput("hello from PostDeploy.sh");
                result.AssertNoOutput("hello from PostDeploy.ps1");
            }
        }
Ejemplo n.º 2
0
 public void Init()
 {
     nupkgFile = new TemporaryFile(PackageBuilder.BuildSamplePackage("Acme.Web", "1.0.0"));
     tarFile   = new TemporaryFile(TarGzBuilder.BuildSamplePackage("Acme.Web", "1.0.0"));
 }