Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into iox-eclipse-iceoryx…
Browse files Browse the repository at this point in the history
…#590-arch-documentation
  • Loading branch information
mossmaurice committed May 11, 2021
2 parents 9c82f13 + 3772a69 commit 5887ad6
Show file tree
Hide file tree
Showing 793 changed files with 40,944 additions and 11,993 deletions.
9 changes: 7 additions & 2 deletions iceoryx_posh/.clang-tidy → .clang-tidy
@@ -1,14 +1,19 @@
Checks: '-*, readability-identifier-naming'
Checks: '-*,readability-*,-readability-named-parameter,-readability-avoid-const-params-in-decls,-readability-else-after-return,performance-*,-readability-redundant-access-specifiers,hicpp-*,-hicpp-named-parameter,-hicpp-avoid-c-arrays,cppcoreguidelines-*,-hicpp-no-array-decay,-hicpp-signed-bitwise,-hicpp-vararg,-cppcoreguidelines-avoid-c-arrays,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-type-vararg,concurrency-*,clang-analyzer-*,cert-*,bugprone-*'
CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.UnionCase, value: CamelCase }
- { key: readability-identifier-naming.MethodCase, value: camelBack }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.MemberPrefix, value: m_ }
- { key: readability-identifier-naming.MemberCase, value: camelBack }
- { key: readability-identifier-naming.ConstexprVariableCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumCase, value: UPPER_CASE }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-function-size.LineThreshold, value: 200 }
- { key: readability-function-size.StatementThreshold, value: 200 }
- { key: readability-function-size.BranchThreshold, value: 10 }
- { key: readability-function-size.ParameterThreshold, value: 3 }
25 changes: 15 additions & 10 deletions .codecov.yml
@@ -1,26 +1,31 @@
# codecov yaml
comment: yes # do not comment PR with the result

codecov:
require_ci_to_pass: yes

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: yes # only post the comment if coverage changes
require_base: no
require_changes: yes
require_base: yes
require_head: yes

coverage:
range: 70..100

range: 70..100
status:
project:
default:
enabled: yes
target: 70%
threshold: 2% # allow coverage to drop maximum by a defined value
flags:
- unittest
patch:
default:
enabled: yes
target: 70%
threshold: 2%
changes: yes
target: auto
threshold: 2% # allow coverage to drop maximum by a defined value
flags:
- unittest
changes: no

parsers:
gcov:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/axivion.yml
@@ -0,0 +1,24 @@
name: Axivion

on:
push:
branches: [ master ]

jobs:
axivion:
runs-on: ubuntu-18.04

steps:
- name : Checkout
uses: actions/checkout@v2

- name: Trigger pipeline
env:
AXIVION_TRIGGER_TOKEN: ${{ secrets.AXIVION_TRIGGER_TOKEN }}
AXIVION_READ_API_TOKEN: ${{ secrets.AXIVION_READ_API_TOKEN }}
run: |
cd $GITHUB_WORKSPACE
pip3 install requests
PIPELINE_ID="$(./tools/axivion/trigger_pipeline.py)"
./tools/axivion/wait_for_pipeline.py "${PIPELINE_ID}"
5 changes: 2 additions & 3 deletions .github/workflows/build-test.yml
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ master, release* ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -27,8 +27,7 @@ jobs:
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
run: |
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev doxygen graphviz texlive-font-utils
sudo apt-get install -y plantuml texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended
sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Checkout
uses: actions/checkout@v2
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/changelog.yml
@@ -0,0 +1,44 @@
# This is a workflow that is manually triggered to generate a changelog based on given git tags and branch

name: Generate Changelog

on:
workflow_dispatch:
inputs:
BranchName:
description: 'Branch name to generate changelog'
required: true
UntilTag:
description: 'Until tag v[major].[minor].[patch].[dev]'
required: true
FutureRelease:
description: 'Future release version v[major].[minor].[patch].[dev]'
required: true

jobs:
create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout branch
uses: actions/checkout@v2.3.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ref: ${{ github.event.inputs.BranchName }}
# Generate changelog
- name: Generate Changelog using github-changelog-generator
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
project: iceoryx
user: eclipse-iceoryx
releaseBranch: ${{ github.event.inputs.BranchName }}
futureRelease: v${{ github.event.inputs.FutureRelease }}
dueTag: ${{ github.event.inputs.UntilTag }}
pullRequests: False
author: False
issues: True
issuesWoLabels: True
stripHeaders: True
stripGeneratorNotice: True
15 changes: 13 additions & 2 deletions .github/workflows/coverage_doc.yml
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ master, release* ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -24,7 +24,7 @@ jobs:
# Softwares installed in ubuntu-18.04 instance
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
run: |
sudo apt-get update
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev git cmake build-essential doxygen graphviz texlive-font-utils lcov
sudo apt-get install -y plantuml texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended
Expand All @@ -37,10 +37,13 @@ jobs:
run: |
mkdir $GITHUB_WORKSPACE/lcov_results
mkdir $GITHUB_WORKSPACE/lcov_results/unittest
mkdir $GITHUB_WORKSPACE/lcov_results/unittest_timing
# add flag to include coverage
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all test-add-user -c unit
cp -rf $GITHUB_WORKSPACE/build/lcov/ $GITHUB_WORKSPACE/lcov_results/unittest/
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-strict build-all test-add-user -c unit-timing clean
cp -rf $GITHUB_WORKSPACE/build/lcov/ $GITHUB_WORKSPACE/lcov_results/unittest_timing/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand All @@ -50,6 +53,14 @@ jobs:
flags: unittests
fail_ci_if_error: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./lcov_results/unittest_timing/lcov/iceoryx_lcov_result_unit-timing.info
name: iceoryx
flags: unittests_timing
fail_ci_if_error: true

- name: Generate doxygen documentation
run: |
# add flag to include coverage
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/experimental_build.yml
@@ -0,0 +1,78 @@
# This is a basic workflow to help you get started with Actions

name: Experimental build

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master, release* ]

jobs:
build_job_latest_clang:
runs-on: ubuntu-latest
name: Build on latest Clang Release
steps:
- name: Install iceoryx dependencies
run: |
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Install latest clang stable release
shell: bash
run: |
REPO_NAME="deb http://apt.llvm.org/focal/ llvm-toolchain-focal main"
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "${REPO_NAME}"
sudo apt-get update
sudo apt-get install -y clang
- name: Checkout
uses: actions/checkout@v2

- name: Build sources
continue-on-error: true
shell: bash
env:
CC: clang
CXX: clang++
run: |
echo $(clang --version)
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-test examples out-of-tree build-shared test-add-user
- name: Run all tests
continue-on-error: true
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh all
build_job_gcc54:
runs-on: ubuntu-16.04
name: Build on Ubuntu 16.04

steps:
- name: compiler versions
run: |
echo $(gcc --version)
echo $(clang --version)
- name: Install iceoryx dependencies
run: |
sudo apt-get update
sudo apt-get install -y libacl1-dev libncurses5-dev
- name: Checkout
uses: actions/checkout@v2

- name: Build sources
run: |
sudo $GITHUB_WORKSPACE/tools/add_test_users.sh
$GITHUB_WORKSPACE/tools/iceoryx_build_test.sh build-all out-of-tree test-add-user
- name: Run all tests
run: |
cd $GITHUB_WORKSPACE/build
tools/run_tests.sh all
@@ -1,14 +1,14 @@
# This is a basic workflow to help you get started with Actions

name: Colcon build
name: Iceoryx Integrationtests

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [ master, release* ]

jobs:
build:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Install Iceoryx Dependencies
run: |
sudo apt install -y apt-transport-https
sudo apt update && sudo apt install -y cmake libacl1-dev libncurses5-dev pkg-config
sudo apt update && sudo apt install -y cmake libacl1-dev libncurses5-dev pkg-config ros-foxy-ros-testing
mkdir -p src/iceoryx
cd $GITHUB_WORKSPACE/src/iceoryx
Expand All @@ -48,7 +48,17 @@ jobs:
sudo sed -i '41 c\"'c'", "'cc'", "'cpp'", "'cxx'", "'h'", "'hh'", "'hpp'", "'hxx'", "'inl'", "'sh'"' /opt/ros/foxy/lib/python3.8/site-packages/ament_copyright/main.py
ament_copyright --exclude LICENSE CONTRIBUTING.md tools/apache2_header.txt
- name: Build & Test
- name: Build
run: |
source /opt/ros/foxy/setup.bash
cd $GITHUB_WORKSPACE
rm -rf iceoryx_examples/COLCON_IGNORE iceoryx_integrationtest/COLCON_IGNORE
colcon build
- name: Test Execution
run: |
source /opt/ros/foxy/setup.bash
source $GITHUB_WORKSPACE/install/setup.bash
cd $GITHUB_WORKSPACE
colcon test --packages-select iceoryx_integrationtest
colcon test-result --all --verbose

0 comments on commit 5887ad6

Please sign in to comment.