Add xvfb-init.sh to docker context

This commit is contained in:
Kevin Sawicki 2017-07-21 14:35:06 -07:00 committed by Aleksei Kuzmin
parent c3e0e4682d
commit f1036f7305
2 changed files with 4 additions and 3 deletions

View file

@ -1 +1,2 @@
*
!tools/xvfb-init.sh

View file

@ -60,9 +60,9 @@ def main():
deps += LINUX_DEPS_NO_ARM
execute(['sudo', 'apt-get', 'install'] + deps)
if PLATFORM == 'linux':
os.environ['DISPLAY'] = ':99.0'
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
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'