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.
- Loading branch information
Showing
2 changed files
with
23 additions
and
19 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,36 +1,21 @@ | ||
name: CMake | ||
name: Build and run ROS tests | ||
|
||
on: | ||
push: | ||
branches: [ kinetic-devel ] | ||
pull_request: | ||
branches: [ kinetic-devel ] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
# The CMake configure and build commands are platform agnostic and should work equally | ||
# well on Windows or Mac. You can convert this to a matrix build if you need | ||
# cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: ros:noetic-robot | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cd ${{github.workspace}} && . /opt/ros/noetic/setup.sh && catkin build && catkin build | ||
- name: Build and run tests | ||
run: ./ci.sh | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: ctest -C ${{env.BUILD_TYPE}} | ||
|
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,19 @@ | ||
#!/bin/bash | ||
|
||
# Should be run from the root directory of the repo. | ||
BUILD_DIR=build | ||
|
||
cmake -B ${BUILD_DIR} -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 | ||
|