Set DISPLAY in CI machine
This commit is contained in:
parent
83ee7a464d
commit
a720e52568
1 changed files with 3 additions and 1 deletions
|
@ -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'))
|
||||||
|
|
Loading…
Reference in a new issue