From a370de4caf63784978c29b16793ad103d3573c3f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 15 Jul 2021 19:54:06 +0200 Subject: [PATCH] Remove checks for TRAVIS environments variable from the tests We don't use Travis CI any more, so this is now unnecessary. --- tests/test.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/test.cpp b/tests/test.cpp index 44e0dae1f1..cef50eaf67 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -365,16 +365,6 @@ extern void SetProcessEventFunc(ProcessEventFunc func) extern bool IsNetworkAvailable() { - // Somehow even though network is available on Travis CI build machines, - // attempts to open remote URIs sporadically fail, so don't run these tests - // under Travis to avoid false positives. - static int s_isTravis = -1; - if ( s_isTravis == -1 ) - s_isTravis = wxGetEnv(wxASCII_STR("TRAVIS"), NULL); - - if ( s_isTravis ) - return false; - // NOTE: we could use wxDialUpManager here if it was in wxNet; since it's in // wxCore we use a simple rough test: @@ -414,8 +404,7 @@ extern bool IsAutomaticTest() // Also recognize various CI environments. if ( !s_isAutomatic ) { - s_isAutomatic = wxGetEnv(wxASCII_STR("TRAVIS"), NULL) || - wxGetEnv(wxASCII_STR("GITHUB_ACTIONS"), NULL) || + s_isAutomatic = wxGetEnv(wxASCII_STR("GITHUB_ACTIONS"), NULL) || wxGetEnv(wxASCII_STR("APPVEYOR"), NULL); } }