Recognize GitHub Actions as a CI environment in the test

This is necessary to activate the existing workarounds in the GUI tests.
This commit is contained in:
Vadim Zeitlin 2021-01-30 23:15:09 +01:00
parent bde95c388c
commit f2188be471

View File

@ -405,10 +405,11 @@ extern bool IsAutomaticTest()
s_isAutomatic = username == wxASCII_STR("buildbot") ||
username.Matches(wxASCII_STR("sandbox*"));
// Also recognize Travis and AppVeyor CI environments.
// Also recognize various CI environments.
if ( !s_isAutomatic )
{
s_isAutomatic = wxGetEnv(wxASCII_STR("TRAVIS"), NULL) ||
wxGetEnv(wxASCII_STR("GITHUB_ACTIONS"), NULL) ||
wxGetEnv(wxASCII_STR("APPVEYOR"), NULL);
}
}