From: Cheng Zhao Date: Sat, 9 Aug 2014 01:48:37 +0000 (+0800) Subject: linux: Start xvfb in CI. X-Git-Tag: v0.15.5~9^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=eeff20f1bc7a9abd9ccc87d82757375e735fd6f4;p=electron.git linux: Start xvfb in CI. --- diff --git a/script/cibuild b/script/cibuild index c8ad4a6d..f481c286 100755 --- a/script/cibuild +++ b/script/cibuild @@ -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'))