linux: Install all necessary deps on CI.
This commit is contained in:
parent
b93564894c
commit
7f534652a6
1 changed files with 9 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue