From 843de8f1de8184df1ebbe89bd3ddd8f7b41e0831 Mon Sep 17 00:00:00 2001 From: fmessmer Date: Wed, 14 Feb 2024 09:30:58 +0100 Subject: [PATCH] migrate ci to gha --- .travis.xacro_test.sh => .ci.xacro_test.sh | 0 .github/workflows/main.yml | 40 ++++++++++++++++++++++ .travis.yml | 24 ------------- README.md | 9 ++--- 4 files changed, 42 insertions(+), 31 deletions(-) rename .travis.xacro_test.sh => .ci.xacro_test.sh (100%) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.travis.xacro_test.sh b/.ci.xacro_test.sh similarity index 100% rename from .travis.xacro_test.sh rename to .ci.xacro_test.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..c32034838 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: GHA CI + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * 0" # every Sunday at midnight + workflow_dispatch: + +jobs: + industrial_ci: + name: GHA CI + runs-on: ubuntu-latest + timeout-minutes: 60 + + env: + ADDITIONAL_DEBS: 'apt-utils dialog git' + AFTER_SCRIPT: 'rosenv sh .ci.xacro_test.sh' + CATKIN_LINT: pedantic + CATKIN_LINT_ARGS: '--ignore description_boilerplate' + CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release + PYLINT_ARGS: '--output-format=parseable --errors-only' + PYLINT_CHECK: true + ROS_REPO: main + + strategy: + matrix: + include: + - { ROS_DISTRO: noetic } + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + lfs: true + ssh-known-hosts: '' + + - uses: ros-industrial/industrial_ci@master + with: + config: ${{toJSON(matrix)}} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f4a3b4e12..000000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: generic -services: - - docker - -notifications: - email: - on_success: change - on_failure: always -env: - global: - - ADDITIONAL_DEBS='apt-utils curl dialog wget' - - AFTER_SCRIPT='rosenv sh .travis.xacro_test.sh' - - CATKIN_LINT=pedantic - - CATKIN_LINT_ARGS='--ignore description_boilerplate' - - CMAKE_ARGS=-DCMAKE_BUILD_TYPE=Release - - PYLINT_ARGS="--output-format=parseable --errors-only" - - PYLINT_CHECK=false - - ROS_REPO=main - matrix: - - ROS_DISTRO=foxy -install: - - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master -script: - - .industrial_ci/travis.sh diff --git a/README.md b/README.md index 39b280294..38a2e4071 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,6 @@ cob_common =========== -## Travis - Continuous Integration +## GitHub Actions - Continuous Integration -Status: [![Build Status](https://app.travis-ci.com/ipa320/cob_common.svg?branch=foxy)](https://app.travis-ci.com/ipa320/cob_common) - - -This is a repository for Care-O-bot URDF macros and common message/service descriptions. - -Installation instructions and tutorials can be found at http://www.care-o-bot.org. +CI-Status ```foxy```: [![GHA CI](https://github.com/4am-robotics/cob_common/actions/workflows/main.yml/badge.svg?branch=foxy)](https://github.com/4am-robotics/cob_common/actions/workflows/main.yml?query=branch%3Afoxy)