@@ -16,9 +16,9 @@ def clone(repository, folder, default_branch, cwdp='', recursive = False, destin
1616 subprocess .call (['git' , 'clone' , '--recursive' , repository ], cwd = './' + cwdp )
1717 else :
1818 if destination_folder :
19- subprocess .call (['git' , 'clone' , repository , destination_folder ], cwd = './' + cwdp )
19+ subprocess .call (['git' , 'clone' , repository , destination_folder ], cwd = './' + cwdp )
2020 else :
21- subprocess .call (['git' , 'clone' , repository ], cwd = './' + cwdp )
21+ subprocess .call (['git' , 'clone' , repository ], cwd = './' + cwdp )
2222 checkout (folder , default_branch , cwdp )
2323
2424def checkout (folder , default_branch , cwdp ):
@@ -29,7 +29,7 @@ def checkout(folder, default_branch, cwdp):
2929 os .chdir (newPath )
3030 python_git = subprocess .Popen ("git branch -a" ,shell = True ,stdout = subprocess .PIPE ,stderr = subprocess .PIPE )
3131 outstd ,errstd = python_git .communicate ()
32- if branch and branch in str (outstd ):
32+ if branch and branch in str (outstd ) and branch != 'development' : # don't ckeckout development for netpyne
3333 subprocess .call (['git' , 'checkout' , branch ], cwd = './' )
3434 else :
3535 subprocess .call (['git' , 'checkout' , default_branch ], cwd = './' )
@@ -39,7 +39,7 @@ def main(argv):
3939 global branch
4040 if (len (argv ) > 0 ):
4141 if (argv [0 ] == 'branch' ):
42- branch = argv [1 ]
42+ branch = argv [1 ]
4343
4444if __name__ == "__main__" :
4545 main (sys .argv [1 :])
@@ -53,7 +53,8 @@ def main(argv):
5353subprocess .call (['pip' , 'install' , '-e' , '.' ], cwd = './netpyne/' )
5454
5555clone ('https://github.com/openworm/org.geppetto.frontend.jupyter.git' ,'org.geppetto.frontend.jupyter' ,'development' )
56- subprocess .call (['npm' , 'install' ], cwd = './org.geppetto.frontend.jupyter/js' )
56+ with open ('npm_frontend_jupyter_log' , 'a' ) as stdout :
57+ subprocess .call (['npm' , 'install' ], cwd = './org.geppetto.frontend.jupyter/js' , stdout = stdout )
5758subprocess .call (['npm' , 'run' , 'build-dev' ], cwd = './org.geppetto.frontend.jupyter/js' )
5859
5960# We can't clone org.geppetto.frontend as a regular submodule because Travis doesn't have .gitmodules in the zip
@@ -67,7 +68,8 @@ def main(argv):
6768
6869# Installing and building
6970print ("NPM Install and build for Geppetto Frontend ..." )
70- subprocess .call (['npm' , 'install' ], cwd = './netpyne_ui/geppetto/src/main/webapp/' )
71+ with open ('npm_frontend_log' , 'a' ) as stdout :
72+ subprocess .call (['npm' , 'install' ], cwd = './netpyne_ui/geppetto/src/main/webapp/' , stdout = stdout )
7173subprocess .call (['npm' , 'run' , 'build-dev-noTest' ], cwd = './netpyne_ui/geppetto/src/main/webapp/' )
7274
7375print ("Installing jupyter_geppetto python package ..." )
0 commit comments