forked from FlexBE/flexbe_app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Industrial CI config and for Github Actions
- Loading branch information
1 parent
ee3efcd
commit 6035a6e
Showing
2 changed files
with
70 additions
and
0 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 |
---|---|---|
@@ -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)}} |
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,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 |