-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
27 lines (27 loc) · 1.66 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pipelines:
default:
- parallel:
- step:
name: Humble
image: dataspeedinc/ros:humble
size: 2x # 8GB RAM
script:
- source `find /opt/ros -maxdepth 2 -name setup.bash | sort | head -1` && echo $ROS_DISTRO # Source ROS environment
- mkdir src && mv `find -maxdepth 1 -not -name . -not -name src` src/ # Move everything into the src directory
- apt update && rosdep install --from-paths src --ignore-src -y # Install dependencies missing from the docker image
- colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
- colcon test
- for x in build/**/test_results; do cp -r $x/ .; done && mv test_results $BITBUCKET_CLONE_DIR/test-results # Create top level test-results folder for Pipelines
- colcon test-result --verbose
- step:
name: Iron
image: dataspeedinc/ros:iron
size: 2x # 8GB RAM
script:
- source `find /opt/ros -maxdepth 2 -name setup.bash | sort | head -1` && echo $ROS_DISTRO # Source ROS environment
- mkdir src && mv `find -maxdepth 1 -not -name . -not -name src` src/ # Move everything into the src directory
- apt update && rosdep install --from-paths src --ignore-src -y # Install dependencies missing from the docker image
- colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
- colcon test
- for x in build/**/test_results; do cp -r $x/ .; done && mv test_results $BITBUCKET_CLONE_DIR/test-results # Create top level test-results folder for Pipelines
- colcon test-result --verbose