Skip to content

Commit d6b832b

Browse files
committed
Prevent tests detecting they are running in appveyor
1 parent 1d8cbc9 commit d6b832b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GitVersionExe.Tests/GitVersionHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ static ExecutionResults ExecuteIn(ArgumentBuilder arguments)
3232
var environmentalVariables =
3333
new[]
3434
{
35-
new KeyValuePair<string, string>("TEAMCITY_VERSION", arguments.IsTeamCity ? "8.0.0" : null)
35+
new KeyValuePair<string, string>("TEAMCITY_VERSION", arguments.IsTeamCity ? "8.0.0" : null),
36+
new KeyValuePair<string, string>("APPVEYOR", null)
3637
};
3738

3839
var exitCode = ProcessHelper.Run(

0 commit comments

Comments
 (0)