Use xvfb from container on CI
This commit is contained in:
parent
a0fd37c8a3
commit
c3e0e4682d
3 changed files with 30 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue