#NEWLINE# def shell( cmd ) : #NEWLINE# #INDENT# print ( ( '$ %s' % cmd ) ) #NEWLINE# p = Popen ( cmd , shell = True , cwd = os . path . join ( os . environ [ 'TRAVIS_BUILD_DIR' ] , 'builds' , commit ) ) #NEWLINE# ( stdout , stderr ) = p . communicate ( ) #NEWLINE# if stdout : #NEWLINE# #INDENT# print ( stdout , end = '\n' ) #NEWLINE# #UNINDENT# if stderr : #NEWLINE# #INDENT# print ( stderr , end = '\n' )