forked from ros-perception/laser_filters
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kinetic-devel' into segfault_fix
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build and run ROS tests | ||
|
||
on: | ||
push: | ||
branches: [ kinetic-devel ] | ||
pull_request: | ||
branches: [ kinetic-devel ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
rosdistro: [kinetic, melodic, noetic] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
continue-on-error: true | ||
|
||
container: | ||
# The perception docker images includes laser_geometry, which we need. | ||
image: ros:${{ matrix.rosdistro }}-perception | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build and run tests | ||
run: . /opt/ros/${{ matrix.rosdistro }}/setup.sh && ./ci.sh | ||
|
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Exit with any error. | ||
set -e | ||
|
||
# Should be run from the root directory of the repo. | ||
BUILD_DIR=build | ||
|
||
mkdir -p ${BUILD_DIR} | ||
(cd ${BUILD_DIR} && cmake .. -DCATKIN_ENABLE_TESTING=1) | ||
|
||
# Build. | ||
make -C ${BUILD_DIR} | ||
|
||
# Build the tests. | ||
make -C ${BUILD_DIR} tests | ||
|
||
# Run the tests. | ||
make -C ${BUILD_DIR} test | ||
|
||
# Summarize test results (also sets the exit status for the script) | ||
catkin_test_results | ||
|