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