Fix CI detection on azure pipelines

This commit is contained in:
Kovid Goyal 2019-09-05 23:47:03 +05:30
parent 0d4cdeea97
commit c4ef009bfb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,8 +35,8 @@ if ismacos:
setenv('LDFLAGS', '-L$SW/lib') setenv('LDFLAGS', '-L$SW/lib')
setenv('QMAKE', '$SW/qt/bin/qmake') setenv('QMAKE', '$SW/qt/bin/qmake')
setenv('QTWEBENGINE_DISABLE_SANDBOX', '1') setenv('QTWEBENGINE_DISABLE_SANDBOX', '1')
old = os.environ.get('DYLD_FALLBACK_LIBRARY_PATH', '')
setenv('QT_PLUGIN_PATH', '$SW/qt/plugins') setenv('QT_PLUGIN_PATH', '$SW/qt/plugins')
old = os.environ.get('DYLD_FALLBACK_LIBRARY_PATH', '')
if old: if old:
old += ':' old += ':'
setenv('DYLD_FALLBACK_LIBRARY_PATH', old + '$SW/lib') setenv('DYLD_FALLBACK_LIBRARY_PATH', old + '$SW/lib')
@ -107,6 +107,7 @@ def main():
run_python('setup.py bootstrap --ephemeral') run_python('setup.py bootstrap --ephemeral')
elif action == 'test': elif action == 'test':
os.environ['CI'] = 'true'
if ismacos: if ismacos:
os.environ['SSL_CERT_FILE' os.environ['SSL_CERT_FILE'
] = os.path.abspath('resources/mozilla-ca-certs.pem') ] = os.path.abspath('resources/mozilla-ca-certs.pem')