File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ def detect_context():
7171 if 'CHOCO' in os .environ :
7272 ci ['choco' ].extend (os .environ ['CHOCO' ].split ())
7373
74+ if 'APT' in os .environ :
75+ ci ['apt' ].extend (os .environ ['APT' ].split ())
76+
7477 ci ['test' ] = True
7578 if 'TEST' in os .environ and os .environ ['TEST' ].lower () == 'no' :
7679 ci ['test' ] = False
@@ -126,6 +129,7 @@ def clear_lists():
126129 ci ['configuration' ] = '<unknown>'
127130 ci ['scriptsdir' ] = ''
128131 ci ['choco' ] = ['make' ]
132+ ci ['apt' ] = []
129133
130134
131135clear_lists ()
@@ -822,6 +826,11 @@ def prepare(args):
822826 sp .check_call (['choco' , 'install' ] + ci ['choco' ])
823827 fold_end ('install.choco' , 'Installing CHOCO packages' )
824828
829+ if ci ['os' ] == 'linux' and ci ['apt' ]:
830+ fold_start ('install.apt' , 'Installing APT packages' )
831+ sp .check_call (['sudo' , 'apt-get' , '-y' , 'install' ] + ci ['apt' ])
832+ fold_end ('install.apt' , 'Installing APT packages' )
833+
825834 if ci ['os' ] == 'linux' and 'RTEMS' in os .environ :
826835 tar_name = 'i386-rtems{0}-trusty-20171203-{0}.tar.bz2' .format (os .environ ['RTEMS' ])
827836 print ('Downloading RTEMS {0} cross compiler: {1}'
You can’t perform that action at this time.
0 commit comments