Use xvfb from container on CI

This commit is contained in:
Kevin Sawicki 2017-07-21 14:31:28 -07:00 committed by Aleksei Kuzmin
parent a0fd37c8a3
commit c3e0e4682d
3 changed files with 30 additions and 2 deletions

View file

@ -60,8 +60,9 @@ def main():
deps += LINUX_DEPS_NO_ARM
execute(['sudo', 'apt-get', 'install'] + deps)
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
os.environ['DISPLAY'] = ':99.0'
if PLATFORM == 'linux':
os.environ['DISPLAY'] = ':99.0'
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
# CI's npm is not reliable.
npm = 'npm.cmd' if PLATFORM == 'win32' else 'npm'