Skip to content

Commit

Permalink
Merge pull request #2640 from FoothillSolutions/fix-template-integrat…
Browse files Browse the repository at this point in the history
…ion-tests

Fix FAKE template integration tests.
  • Loading branch information
yazeedobaid authored Jan 30, 2022
2 parents c7273c7 + 1c13985 commit aaba198
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
]
},
"fake-cli": {
"version": "5.21.0-alpha004",
"version": "5.21.0",
"commands": [
"fake"
]
}
}
}
}
2 changes: 1 addition & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ let version =
|> Seq.append [ 0I ]
|> Seq.max
let d = System.DateTime.Now
[ PreReleaseSegment.AlphaNumeric ("local-" + (currentVer + 1I).ToString()) ], d.ToString("yyyy-MM-dd-HH-mm")
[ PreReleaseSegment.AlphaNumeric ("local." + (currentVer + 1I).ToString()) ], d.ToString("yyyy-MM-dd-HH-mm")

let semVer = SemVer.parse release.NugetVersion
let prerelease =
Expand Down
2 changes: 1 addition & 1 deletion src/test/Fake.DotNet.Cli.IntegrationTests/TemplateTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let timeout = (System.TimeSpan.FromMinutes 10.)
let runTemplate rootDir kind dependencies dsl =
Directory.ensure rootDir
try
DotNet.exec (dtntWorkDir rootDir >> redirect()) "new" (sprintf "%s --allow-scripts yes --version 5.16.2-alpha.1304 --bootstrap %s --dependencies %s --dsl %s" templateName (string kind) (string dependencies) (string dsl))
DotNet.exec (dtntWorkDir rootDir >> redirect()) "new" (sprintf "%s --allow-scripts yes --bootstrap %s --dependencies %s --dsl %s" templateName (string kind) (string dependencies) (string dsl))
|> shouldSucceed "should have run the template successfully"
with e ->
if e.Message.Contains "Command succeeded" &&
Expand Down

0 comments on commit aaba198

Please sign in to comment.