Skip to content

Commit 289c543

Browse files
Remove TRAVIS environment variable while testing
1 parent e81c4ec commit 289c543

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/GitVersionCore.Tests/ExecuteCoreTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ string RepositoryScope(ExecuteCore executeCore = null, Action<EmptyRepositoryFix
142142
{
143143
// Make sure GitVersion doesn't trigger build server mode when we are running the tests
144144
Environment.SetEnvironmentVariable("APPVEYOR", null);
145+
Environment.SetEnvironmentVariable("TRAVIS", null);
145146
var infoBuilder = new StringBuilder();
146147
Action<string> infoLogger = s =>
147148
{

src/GitVersionExe.Tests/GitVersionHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ static ExecutionResults ExecuteIn(ArgumentBuilder arguments)
3737
new[]
3838
{
3939
new KeyValuePair<string, string>("TEAMCITY_VERSION", arguments.IsTeamCity ? "8.0.0" : null),
40-
new KeyValuePair<string, string>("APPVEYOR", null)
41-
};
40+
new KeyValuePair<string, string>("APPVEYOR", null),
41+
new KeyValuePair<string, string>("TRAVIS", null),
42+
};
4243

4344
var exitCode = -1;
4445

0 commit comments

Comments
 (0)