From 753aa757a44ee2694d6f1fcd841dd3fe5c9ad63a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 22 Nov 2017 21:25:19 +0100 Subject: [PATCH] Recognize AppVeyor CI environment in unit tests Check for APPVEYOR environment variable in addition to TRAVIS one. --- tests/test.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test.cpp b/tests/test.cpp index 4b5f492fa4..e8628ac591 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -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;