From dd5a13e07816aac12caa68ba70f833289237b7e7 Mon Sep 17 00:00:00 2001 From: Miguel Prada <miguel.prada@tecnalia.com> Date: Tue, 14 May 2019 18:04:37 +0200 Subject: [PATCH] Lookup CI setup scripts in a argument provided path In preparation for migration to the new colcon-ROS2-enabled industrial_ci See https://github.com/ros-industrial/industrial_ci/pull/361#pullrequestreview-236934549 --- .gitlab-industrial-ci-kinetic-no-rosinstall.yml | 3 ++- .gitlab-industrial-ci-kinetic-with-rosinstall.yml | 3 ++- scripts/ci_run_entry_points.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml index 2c5ecf6..01a8d73 100644 --- a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml +++ b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml @@ -23,10 +23,11 @@ before_script: - docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN} script: .ci_config/gitlab.sh variables: + ADDITIONAL_DEBS: curl ROS_DISTRO: kinetic ROS_PARALLEL_JOBS: "-j2" # keep this for now, since there seems to be memory limit issues in the ci VM DOCKER_IMAGE: "${ARTIFACT_DOCKER_URL}/flexbotics-base-devel" - BEFORE_SCRIPT: "wget -q -O - https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/ci_run_entry_points.sh | bash" + BEFORE_SCRIPT: "bash <(curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/ci_run_entry_points.sh) $CATKIN_WORKSPACE" CATKIN_CONFIG: '--cmake-args -DCMAKE_CXX_FLAGS=-Wno-ignored-attributes -Wno-int-in-bool-context --' when: always diff --git a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml index c63dc7f..18529c3 100644 --- a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml +++ b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml @@ -23,12 +23,13 @@ before_script: - docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN} script: .ci_config/gitlab.sh variables: + ADDITIONAL_DEBS: curl ROS_DISTRO: kinetic ROS_PARALLEL_JOBS: "-j2" # keep this for now, since there seems to be memory limit issues in the ci VM UPSTREAM_WORKSPACE: file ROSINSTALL_FILENAME: ".rosinstall" DOCKER_IMAGE: "${ARTIFACT_DOCKER_URL}/flexbotics-base-devel" - BEFORE_SCRIPT: "wget -q -O - https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/ci_run_entry_points.sh | bash" + BEFORE_SCRIPT: "bash <(curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/ci_run_entry_points.sh) $CATKIN_WORKSPACE" CATKIN_CONFIG: '--cmake-args -DCMAKE_CXX_FLAGS=-Wno-ignored-attributes -Wno-int-in-bool-context --' when: always diff --git a/scripts/ci_run_entry_points.sh b/scripts/ci_run_entry_points.sh index 6e9c8d4..077cbde 100755 --- a/scripts/ci_run_entry_points.sh +++ b/scripts/ci_run_entry_points.sh @@ -1,5 +1,5 @@ #!/bin/bash -find -L $CATKIN_WORKSPACE -name ci_entry_script.bash -exec bash -c 'echo Running entry script from $(basename $(dirname {})) ; {} ' \; +find -L $1 -name ci_entry_script.bash -exec bash -c 'echo Running entry script from $(basename $(dirname {})) ; {} ' \; echo Finalized running the user entry scripts -- GitLab