Skip to content

Commit

Permalink
Add ros2_dependencies and update circle ci config to build ros2 depen…
Browse files Browse the repository at this point in the history
…dencies

Signed-off-by: Sarthak Mittal <sarthakmittal2608@gmail.com>
  • Loading branch information
naiveHobo committed Jun 24, 2020
1 parent 9c160c3 commit d492fd4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
version: 2

jobs:
build_and_test:
docker:
- image: ros:foxy
environment:
ROS_WS: "/opt/ros"
UNDERLAY_WS: "/opt/underlay_ws"
OVERLAY_WS: "/opt/overlay_ws"
steps:
- checkout
- run:
name: Set Up Container
command: |
apt update -qq && apt install -y build-essential cmake python3-colcon-common-extensions python3-rosdep libeigen3-dev
apt upgrade -y
source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1`
mkdir -p src/grid_map && mv `find -maxdepth 1 -not -name . -not -name src` src/grid_map/
source `find $ROS_WS -maxdepth 2 -name local_setup.bash | sort | head -1`
mkdir -p $UNDERLAY_WS/src
cp $OVERLAY_WS/src/grid_map/tools/ros2_dependencies.repos \
$UNDERLAY_WS/ros2_dependencies.repos
cd $UNDERLAY_WS && vcs import src < ros2_dependencies.repos
colcon build --symlink-install --packages-up-to nav2_costmap_2d
source $UNDERLAY_WS/install/setup.bash
cd $OVERLAY_WS
mkdir -p $OVERLAY_WS/src/grid_map && mv `find -maxdepth 1 -not -name . -not -name src` $OVERLAY_WS/src/grid_map/
rosdep update
rosdep install -y --ignore-src --from-paths src
- run:
name: Debug Build
command: |
source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1`
source `find $ROS_WS -maxdepth 2 -name local_setup.bash | sort | head -1`
colcon build --parallel-workers 1
- run:
name: Run Tests
command: |
source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1`
source `find $ROS_WS -maxdepth 2 -name local_setup.bash | sort | head -1`
colcon test --parallel-workers 1
colcon test-result --verbose
workflows:
Expand Down
5 changes: 5 additions & 0 deletions tools/ros2_dependencies.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repositories:
ros-planning/navigation2:
type: git
url: https://github.com/ros-planning/navigation2.git
version: master

0 comments on commit d492fd4

Please sign in to comment.