Skip to content

Commit

Permalink
Remove TRAVIS environment variable while testing
Browse files Browse the repository at this point in the history
  • Loading branch information
eatdrinksleepcode committed Jul 6, 2016
1 parent 4fe0691 commit 468c069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/GitVersionCore.Tests/ExecuteCoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ string RepositoryScope(ExecuteCore executeCore = null, Action<EmptyRepositoryFix
{
// Make sure GitVersion doesn't trigger build server mode when we are running the tests
Environment.SetEnvironmentVariable("APPVEYOR", null);
Environment.SetEnvironmentVariable("TRAVIS", null);
var infoBuilder = new StringBuilder();
Action<string> infoLogger = s =>
{
Expand Down
5 changes: 3 additions & 2 deletions src/GitVersionExe.Tests/GitVersionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ static ExecutionResults ExecuteIn(ArgumentBuilder arguments)
new[]
{
new KeyValuePair<string, string>("TEAMCITY_VERSION", arguments.IsTeamCity ? "8.0.0" : null),
new KeyValuePair<string, string>("APPVEYOR", null)
};
new KeyValuePair<string, string>("APPVEYOR", null),
new KeyValuePair<string, string>("TRAVIS", null),
};

var exitCode = -1;

Expand Down

0 comments on commit 468c069

Please sign in to comment.