Skip to content

Commit

Permalink
✨ coveralls (TAMS-Group#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Weaver <tylerjw@gmail.com>
  • Loading branch information
tylerjw committed Jan 3, 2022
1 parent a5b6700 commit d5f8781
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ jobs:
if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0'
with:
files: ${{ env.BASEDIR }}/target_ws/coverage.info
- name: Upload coveralls report
uses: coverallsapp/github-action@master
if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ env.BASEDIR }}/target_ws/coverage.info
- name: Prepare target_ws for cache
if: always()
run: |
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/doxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
env:
ROS_DISTRO: rolling
NOT_TEST_BUILD: true
UPSTREAM_WORKSPACE: upstream.repos
UPSTREAM_CMAKE_ARGS: >
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld
-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld
-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld
# Clear the ccache stats before and log the stats after the build
AFTER_SETUP_CCACHE: ccache --zero-stats --max-size=10.0G
AFTER_BUILD_TARGET_WORKSPACE: ccache --show-stats
Expand All @@ -24,11 +30,20 @@ jobs:
colcon build --event-handlers console_direct+ desktop_notification- status- terminal_title- --cmake-args -DENABLE_DOXYGEN=ON --cmake-target doxygen-docs
CCACHE_DIR: ${{ github.workspace }}/.ccache
BASEDIR: ${{ github.workspace }}/.work
ADDITIONAL_DEBS: doxygen graphviz
ADDITIONAL_DEBS: doxygen graphviz lld

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache upstream workspace
uses: pat-s/always-upload-cache@v2.1.5
with:
path: ${{ env.BASEDIR }}/upstream_ws
key: ${{ env.CACHE_PREFIX }}-${{ github.run_id }}
restore-keys: ${{ env.CACHE_PREFIX }}
env:
CACHE_PREFIX: upstream_ws-doxygen-${{ hashFiles('upatream.repos', '.github/workflows/ci.yaml') }}
# The target directory cache doesn't include the source directory because
# that comes from the checkout. See "prepare target_ws for cache" task below
- name: Cache target workspace
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ name: pre-release

on:
workflow_dispatch:
push:
branches:
- ros2
# TODO(tylerjw): re-enable this once moveit release is fixed
# push:
# branches:
# - ros2

jobs:
default:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![CI](https://github.com/tylerjw/bio_ik/actions/workflows/ci.yaml/badge.svg?branch=ros2)](https://github.com/tylerjw/bio_ik/actions/workflows/ci.yaml?query=branch%3Aros2)
[![Pre-release](https://github.com/tylerjw/bio_ik/actions/workflows/prerelease.yaml/badge.svg?branch=ros2)](https://github.com/tylerjw/bio_ik/actions/workflows/prerelease.yaml?query=branch%3Aros2)
[![Doxygen](https://github.com/tylerjw/bio_ik/actions/workflows/doxygen.yaml/badge.svg?branch=ros2)](https://github.com/tylerjw/bio_ik/actions/workflows/doxygen.yaml?query=branch%3Aros2)
[![Code Coverage](https://codecov.io/gh/tylerjw/bio_ik/branch/ros2/graph/badge.svg?token=W7uHKcY0ly)](https://codecov.io/gh/tylerjw/arm_teleop)
[![Code Coverage](https://codecov.io/gh/tylerjw/bio_ik/branch/ros2/graph/badge.svg?token=W7uHKcY0ly)](https://codecov.io/gh/tylerjw/bio_ik)
[![Coverage Status](https://coveralls.io/repos/github/tylerjw/bio_ik/badge.svg?branch=ros2)](https://coveralls.io/github/tylerjw/bio_ik?branch=ros2)

## Disclaimer

Expand Down

0 comments on commit d5f8781

Please sign in to comment.