Skip to content

Commit

Permalink
Add Industrial CI config and for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LoyVanBeek committed Jun 29, 2021
1 parent ee3efcd commit 6035a6e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
pull_request:
# schedule:
# - cron: "0 0 * * 0" # every Sunday at midnight
workflow_dispatch:

jobs:
industrial_ci:
if: github.event.pull_request.draft == false # only run on non-draft PRs
runs-on: ubuntu-latest
timeout-minutes: 60

env:
ADDITIONAL_DEBS: 'apt-utils dialog'
CATKIN_LINT: pedantic
CATKIN_LINT_ARGS: '--ignore description_boilerplate'
CCACHE_DIR: /github/home/.ccache # Directory for ccache (and how we enable ccache in industrial_ci)
CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Release
PYLINT_ARGS: '--output-format=parseable --errors-only --disable=method-hidden'
PYLINT_CHECK: true
ROS_REPO: main

strategy:
matrix:
include:
- { ROS_DISTRO: kinetic }
- { ROS_DISTRO: noetic }

steps:
- uses: actions/checkout@v2
with:
lfs: true
ssh-known-hosts: ''

# This step will fetch/store the directory used by ccache before/after the ci run
- uses: actions/cache@v2
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ matrix.ROS_DISTRO }}

- uses: ros-industrial/industrial_ci@master
with:
config: ${{toJSON(matrix)}}
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: generic
services:
- docker

notifications:
email:
on_success: change
on_failure: always
env:
global:
- ADDITIONAL_DEBS='apt-utils dialog'
- CATKIN_LINT=pedantic
- CMAKE_ARGS=-DCMAKE_BUILD_TYPE=Release
- PARALLEL_TESTS=1
- PYLINT_ARGS='--output-format=parseable --errors-only --disable=method-hidden'
- PYLINT_CHECK=true
- ROS_REPO=main
matrix:
- ROS_DISTRO=kinetic
- ROS_DISTRO=noetic
install:
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci -b master
script:
- .industrial_ci/travis.sh

0 comments on commit 6035a6e

Please sign in to comment.