Set DISPLAY in CI machine

This commit is contained in:
Cheng Zhao 2015-07-03 12:04:27 +08:00
parent 83ee7a464d
commit a720e52568

View file

@ -43,9 +43,11 @@ def main():
deps += LINUX_DEPS_ARM deps += LINUX_DEPS_ARM
execute(['sudo', 'apt-get', 'install'] + deps) execute(['sudo', 'apt-get', 'install'] + deps)
os.environ['DISPLAY'] = ':99.0'
execute(['sh', '-e', '/etc/init.d/xvfb', 'start']) execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
if PLATFORM == 'linux':
os.environ['DISPLAY'] = ':99.0'
rm_rf(os.path.join(SOURCE_ROOT, 'out')) rm_rf(os.path.join(SOURCE_ROOT, 'out'))
rm_rf(os.path.join(SOURCE_ROOT, 'frameworks')) rm_rf(os.path.join(SOURCE_ROOT, 'frameworks'))
rm_rf(os.path.join(SOURCE_ROOT, 'external_binaries')) rm_rf(os.path.join(SOURCE_ROOT, 'external_binaries'))