Skip to content

Commit

Permalink
Replace defunct travis with github actions (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintar authored Dec 19, 2022
1 parent 3ece6fc commit 32c6deb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 19 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and run ROS tests
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
rosdistro: [noetic]
runs-on: ubuntu-latest
container:
image: ros:${{ matrix.rosdistro }}-ros-core
steps:
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential clang-format-10 file git python3-catkin-lint python3-pip python3-rosdep
- name: Install pip dependencies
run: pip install pre-commit
- name: Checkout repository
uses: actions/checkout@v3
with:
path: src/rospy_message_converter
- name: Use rosdep to install remaining dependencies
run: |
sudo rosdep init
rosdep update
rosdep install --from-paths src -i -y --rosdistro ${{ matrix.rosdistro }}
- name: Build
run: |
. /opt/ros/${{ matrix.rosdistro }}/setup.sh
catkin_make install
- name: Run tests
run: |
. devel/setup.sh
CTEST_OUTPUT_ON_FAILURE=1 catkin_make test
cd src/rospy_message_converter
python3 src/rospy_message_converter/json_message_converter.py
python3 src/rospy_message_converter/message_converter.py
- name: Run pre-commit hooks
run: |
cd src/rospy_message_converter
pre-commit run -a
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ License

Project is released under the BSD license.

Travis - Continuous Integration
-------------------------------
GitHub actions - Continuous Integration
---------------------------------------

[![Build Status](https://travis-ci.org/uos/rospy_message_converter.svg)](https://travis-ci.org/uos/rospy_message_converter)
[![Build Status](https://github.com/DFKI-NI/rospy_message_converter/actions/workflows/github-actions.yml/badge.svg)](https://github.com/DFKI-NI/rospy_message_converter/actions/workflows/github-actions.yml/)


ROS Buildfarm
Expand Down

0 comments on commit 32c6deb

Please sign in to comment.