Skip to content

Commit 363181b

Browse files
Remove TRAVIS environment variable while testing
1 parent 4fe0691 commit 363181b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/GitVersionCore.Tests/ExecuteCoreTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ string RepositoryScope(ExecuteCore executeCore = null, Action<EmptyRepositoryFix
131131
{
132132
// Make sure GitVersion doesn't trigger build server mode when we are running the tests
133133
Environment.SetEnvironmentVariable("APPVEYOR", null);
134+
Environment.SetEnvironmentVariable("TRAVIS", null);
134135
var infoBuilder = new StringBuilder();
135136
Action<string> infoLogger = s =>
136137
{

src/GitVersionExe.Tests/GitVersionHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ static ExecutionResults ExecuteIn(ArgumentBuilder arguments)
3838
{
3939
new KeyValuePair<string, string>("TEAMCITY_VERSION", arguments.IsTeamCity ? "8.0.0" : null),
4040
new KeyValuePair<string, string>("APPVEYOR", null)
41-
};
41+
new KeyValuePair<string, string>("TRAVIS", null)
42+
};
4243

4344
var exitCode = -1;
4445

0 commit comments

Comments
 (0)