]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Start xvfb in CI.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 9 Aug 2014 01:48:37 +0000 (09:48 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 9 Aug 2014 01:59:06 +0000 (09:59 +0800)
script/cibuild

index c8ad4a6dec336c55579b7ae444ec883e0c5741c1..f481c2869afe80adc4034684f2e1840e8c68eaf2 100755 (executable)
@@ -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'))