From eeff20f1bc7a9abd9ccc87d82757375e735fd6f4 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 9 Aug 2014 09:48:37 +0800 Subject: [PATCH] linux: Start xvfb in CI. --- script/cibuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/cibuild b/script/cibuild index c8ad4a6dec33..f481c2869afe 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'))