openworm / org.geppetto

Geppetto is an open-source platform to build web-based applications to visualize and simulate neuroscience data and models.
http://geppetto.org
Other
207 stars 50 forks source link

travis-ci fails on org.geppetto.frontend if current branch is not created in other repos #607

Closed rodriguez-facundo closed 5 years ago

rodriguez-facundo commented 5 years ago

lines 62 to 65 in utilities/docker/geppetto/Dockerfile fails on travis-ci for org.geppetto.frontend if $mainBranch branch does not exist in org.geppetto.core, org.geppetto.model, etc...

@tarelli, can we checkout with -B arg so that the branch is created in case it does not exist?

RUN cd workspace && git clone https://github.com/openworm/org.geppetto.model.git && cd org.geppetto.model && git checkout $mainBranch
RUN cd workspace && git clone https://github.com/openworm/org.geppetto.core.git && cd org.geppetto.core && git checkout $mainBranch
RUN cd workspace && git clone https://github.com/openworm/org.geppetto.model.neuroml.git && cd org.geppetto.model.neuroml && git checkout $mainBranch
RUN cd workspace && git clone https://github.com/openworm/org.geppetto.simulation.git && cd org.geppetto.simulation && git checkout $mainBranch
rodriguez-facundo commented 5 years ago

This has been solved here. The file is part of metacell/java-maven-virgo dockerhub image and it is used by org.geppetto/utilities/docker/geppetto/Dockerfile to collect all geppetto repos The script checks whether ${mainBranch} branch exists in the remote repository. If it exists, $mainBranch will be downloaded, if it doesn't, master will be use instead.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.