Recognize AppVeyor CI environment in unit tests
Check for APPVEYOR environment variable in addition to TRAVIS one.
This commit is contained in:
@@ -350,9 +350,12 @@ extern bool IsAutomaticTest()
|
|||||||
s_isAutomatic = username == "buildbot" ||
|
s_isAutomatic = username == "buildbot" ||
|
||||||
username.Matches("sandbox*");
|
username.Matches("sandbox*");
|
||||||
|
|
||||||
// Also recognize Travis CI environment.
|
// Also recognize Travis and AppVeyor CI environments.
|
||||||
if ( !s_isAutomatic )
|
if ( !s_isAutomatic )
|
||||||
s_isAutomatic = wxGetEnv("TRAVIS", NULL);
|
{
|
||||||
|
s_isAutomatic = wxGetEnv("TRAVIS", NULL) ||
|
||||||
|
wxGetEnv("APPVEYOR", NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return s_isAutomatic == 1;
|
return s_isAutomatic == 1;
|
||||||
|
Reference in New Issue
Block a user