Use 'CI' environment variable to detect CI environment

Use the 'CI' environment variable to detect CI environment, rather than a
collection of CI-specific ones.
This commit is contained in:
Jon Turney
2018-10-07 13:12:49 +01:00
parent 7bdb39668b
commit 459b81de46
5 changed files with 8 additions and 8 deletions

View File

@ -38,7 +38,7 @@ def runtests(cross_file):
print('\nTotal passed cross tests:', passing_tests)
print('Total failed cross tests:', failing_tests)
print('Total skipped cross tests:', skipped_tests)
if failing_tests > 0 and ('TRAVIS' in os.environ or 'APPVEYOR' in os.environ):
if failing_tests > 0 and ('CI' in os.environ):
print('\nMesonlogs of failing tests\n')
for l in failing_logs:
print(l, '\n')