Skip to content
Snippets Groups Projects
Commit b2bbbb0e authored by Montaño Sarria, Andres Felipe's avatar Montaño Sarria, Andres Felipe
Browse files

Imrpove runci command

parent 47a9527e
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,14 @@ function cib(){
# Run ci locally
function runci(){
rosrun industrial_ci run_ci ROS_DISTRO="$@" DOCKER_IMAGE=tecnalia-robotics-docker.artifact.tecnalia.com/flexbotics-base-devel:"$@"
# check if exist .rosinstall file
if [ -f ./.rosinstall ]; then
echo ".rosinstall in package"
find ../ -name run_ci -exec bash {} ROS_DISTRO="$@" DOCKER_IMAGE=tecnalia-robotics-docker.artifact.tecnalia.com/flexbotics-base-devel:"$@" UPSTREAM_WORKSPACE=.rosinstall \;
else
echo "No .rosinstall in package"
find ../ -name run_ci -exec bash {} ROS_DISTRO="$@" DOCKER_IMAGE=tecnalia-robotics-docker.artifact.tecnalia.com/flexbotics-base-devel:"$@" \;
fi
}
# If terminal starts in a ws, auto source it (useful for vscode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment