linux: Start xvfb in CI.
This commit is contained in:
parent
9035ffff55
commit
eeff20f1bc
1 changed files with 4 additions and 0 deletions
|
@ -23,9 +23,13 @@ def main():
|
|||
|
||||
is_travis = (os.getenv('TRAVIS') == 'true')
|
||||
if is_travis and sys.platform == 'linux2':
|
||||
print 'Setup travis CI'
|
||||
execute(['sudo', 'apt-get', 'update'])
|
||||
execute(['sudo', 'apt-get', 'install'] + LINUX_DEPS)
|
||||
|
||||
os.environ['DISPLAY'] = ':99.0'
|
||||
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
|
||||
|
||||
rm_rf(os.path.join(SOURCE_ROOT, 'out'))
|
||||
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
|
||||
rm_rf(os.path.join(SOURCE_ROOT, 'frameworks'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue