Recognize AppVeyor CI environment in unit tests

Check for APPVEYOR environment variable in addition to TRAVIS one.
This commit is contained in:
Vadim Zeitlin
2017-11-22 21:25:19 +01:00
parent 0c29775d4d
commit 753aa757a4

View File

@@ -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;