Skip to content

Commit

Permalink
Merge branch 'kinetic-devel' into segfault_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reinzor committed Jun 21, 2021
2 parents 7330a13 + 7c77be2 commit 2da50ce
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ros1_ci.yml
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

23 changes: 23 additions & 0 deletions ci.sh
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

0 comments on commit 2da50ce

Please sign in to comment.