-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from ros-perception/maint/ros2_ci
Maint/ros2 ci
- Loading branch information
Showing
1 changed file
with
12 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |