Skip to content

Commit

Permalink
Merge pull request #408 from ros-perception/maint/ros2_ci
Browse files Browse the repository at this point in the history
Maint/ros2 ci
  • Loading branch information
Joshua Whitley authored Apr 25, 2019
2 parents 705d34e + 986f478 commit a8528dc
Showing 1 changed file with 12 additions and 46 deletions.
58 changes: 12 additions & 46 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,32 @@
version: 2
jobs:
kinetic:
crystal:
docker:
- image: ros:kinetic-perception
- image: ros:crystal-ros-base
steps:
- checkout
- run:
name: Set Up Container
command: |
apt-get update -qq && apt-get install -y python-catkin-tools
source `find /opt/ros -name setup.bash | sort | head -1`
apt update -qq && apt install -y build-essential cmake python3-colcon-common-extensions python3-rosdep
source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1`
mkdir -p src/image_pipeline && mv `find -maxdepth 1 -not -name . -not -name src` src/image_pipeline/
rosdep update
rosdep install --from-paths . --ignore-src
cd ..
catkin init
catkin config --extend /opt/ros/$ROS_DISTRO
rosdep install -y --from-paths . --ignore-src
- run:
name: Build
command: |
cd ..
catkin build --no-status -j4
source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1`
colcon build --parallel-workers 4
- run:
name: Run Tests
command: |
source `find /opt/ros -name setup.bash | sort | head -1`
cd ..
catkin run_tests -j4
catkin_test_results
working_directory: ~/src

melodic:
docker:
- image: ros:melodic-perception
steps:
- checkout
- run:
name: Set Up Container
command: |
apt update -qq && apt install -y python-catkin-tools
source `find /opt/ros -name setup.bash | sort | head -1`
rosdep update
rosdep install --from-paths . --ignore-src
cd ..
catkin init
catkin config --extend /opt/ros/$ROS_DISTRO
- run:
name: Build
command: |
cd ..
catkin build --no-status -j4
- run:
name: Run Tests
command: |
source `find /opt/ros -name setup.bash | sort | head -1`
cd ..
catkin run_tests -j4
catkin_test_results
working_directory: ~/src
source `find /opt/ros -maxdepth 2 -name local_setup.bash | sort | head -1`
colcon test --parallel-workers 4
colcon test-result
workflows:
version: 2
ros_build:
jobs:
- kinetic
- melodic
- crystal

0 comments on commit a8528dc

Please sign in to comment.