linux: Install all necessary deps on CI.

This commit is contained in:
Cheng Zhao 2014-08-08 23:32:51 +08:00
parent b93564894c
commit 7f534652a6

View file

@ -9,12 +9,20 @@ from lib.util import rm_rf
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
LINUX_DEPS = [
'libgnome-keyring-dev',
'libgtk2.0-dev',
'libnotify-dev',
'gcc-multilib',
'g++-multilib',
]
def main():
os.environ['CI'] = '1'
if os.environ['TRAVIS'] == 'true' and sys.platform == 'linux2':
subprocess.check_call(['sudo', 'apt-get', 'install', 'libgnome-keyring-dev'])
subprocess.check_call(['sudo', 'apt-get', 'install'] + LINUX_DEPS)
rm_rf(os.path.join(SOURCE_ROOT, 'out'))
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))