Skip to content

Commit 1b9a67c

Browse files
vinniefalcocppalliance-bot
authored andcommitted
Update coverage data
0 parents  commit 1b9a67c

620 files changed

Lines changed: 1118320 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codecov.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2019 - 2021 Alexander Grund
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
4+
#
5+
# Sample codecov configuration file. Edit as required
6+
7+
codecov:
8+
max_report_age: off
9+
require_ci_to_pass: yes
10+
notify:
11+
# Increase this if you have multiple coverage collection jobs
12+
after_n_builds: 1
13+
wait_for_ci: yes
14+
15+
# Change how pull request comments look
16+
comment:
17+
layout: "reach,diff,flags,files,footer"
18+
19+
# Ignore specific files or folders. Glob patterns are supported.
20+
# See https://docs.codecov.com/docs/ignoring-paths
21+
ignore:
22+
- extra/*
23+
- extra/**/*
24+
- test/*
25+
- test/**/*

.coderabbit.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# https://docs.coderabbit.ai/reference/configuration
2+
3+
language: en
4+
5+
early_access: false
6+
7+
chat:
8+
auto_reply: true
9+
10+
reviews:
11+
auto_review:
12+
enabled: true
13+
ignore_title_keywords:
14+
- "WIP"
15+
drafts: false
16+
base_branches:
17+
- master
18+
- develop
19+
20+
high_level_summary: true
21+
22+
# Generate sequence diagrams for complex code flows
23+
sequence_diagrams: true
24+
25+
poem: true
26+
review_status: true
27+
collapse_walkthrough: true
28+
changed_files_summary: true
29+
request_changes_workflow: false
30+
31+
pre_merge_checks:
32+
description:
33+
mode: warning # Options: off, warning, error
34+
docstrings:
35+
mode: off # Disabled: cannot exclude detail namespaces from coverage
36+
37+
path_filters:
38+
- "!**/bench/**"
39+
- "!**/build/**"
40+
- "!**/context/**"
41+
- "!**/doc/**"
42+
- "!**/meta/**"
43+
- "!**/papers/**"
44+
- "!**/test/**"
45+
46+
# Custom review instructions for specific file patterns
47+
path_instructions:
48+
- path: "**/*.{cpp,hpp}"
49+
instructions: |
50+
Documentation Best Practices
51+
- Docstrings are required for all classes and functions in public
52+
headers in non-detail namespaces. Docstrings should include a brief
53+
description of purpose, document all parameters, return values, and
54+
any preconditions, postconditions, or exceptions. For template
55+
parameters, document constraints or concepts required. Warn if a
56+
class or function is missing a docstring or if the docstring fails
57+
to cover these elements.
58+
- Avoid redundant documentation that merely restates the obvious from
59+
the name and signature. Docstrings should add value beyond what the
60+
declaration already communicates. Do not warn about terse
61+
documentation for self-explanatory accessors or trivial type aliases.
62+
- Document thread-safety guarantees and exception specifications where
63+
applicable, particularly for classes intended for concurrent use or
64+
functions that may throw.
65+
- Files containing non-trivial implementation logic should include a
66+
`/* */` block comment after the includes that provides a high-level
67+
overview of how the implementation works. This should highlight
68+
anything tricky or non-obvious that a maintainer might need to know
69+
in order to reason effectively about the code. Warn if such files
70+
lack this overview or if the overview appears stale relative to the
71+
code.
72+
- Single-line `//` comments within code should be used sparingly and
73+
judiciously, explaining the why (not the what or how) when it is
74+
non-obvious. Warn about comments that merely restate what the code
75+
does or excessive commenting that adds noise rather than clarity.

.cursor/rules/doc.mdc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
description: Documentation style conventions for code snippets, javadocs, and API documentation examples
3+
globs:
4+
alwaysApply: false
5+
---
6+
7+
- `route_params` are named `rp`

.done.star.disabled

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Use, modification, and distribution are
2+
# subject to the Boost Software License, Version 1.0. (See accompanying
3+
# file LICENSE.txt)
4+
#
5+
# Copyright Rene Rivera 2020.
6+
# Copyright Alan de Freitas 2022.
7+
8+
# For Drone CI we use the Starlark scripting language to reduce duplication.
9+
# As the yaml syntax for Drone CI is rather limited.
10+
#
11+
#
12+
13+
def main(ctx):
14+
return generate(
15+
# Compilers
16+
[
17+
'gcc >=5.0',
18+
'clang >=3.9',
19+
'msvc >=14.1',
20+
'arm64-gcc latest',
21+
's390x-gcc latest',
22+
# 'freebsd-gcc latest',
23+
'apple-clang *',
24+
'arm64-clang latest',
25+
's390x-clang latest',
26+
'freebsd-clang latest',
27+
'x86-msvc latest'
28+
],
29+
# Standards
30+
'>=11',
31+
packages=['zlib1g', 'zlib1g-dev', 'libbrotli-dev'])
32+
33+
# from https://github.com/cppalliance/ci-automation
34+
load("@ci_automation//ci/drone/:functions.star", "linux_cxx", "windows_cxx", "osx_cxx", "freebsd_cxx", "generate")

.drone/drone.bat

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
@ECHO ON
3+
setlocal enabledelayedexpansion
4+
5+
set TRAVIS_OS_NAME=windows
6+
7+
IF "!DRONE_BRANCH!" == "" (
8+
for /F %%i in ("!GITHUB_REF!") do @set TRAVIS_BRANCH=%%~nxi
9+
) else (
10+
SET TRAVIS_BRANCH=!DRONE_BRANCH!
11+
)
12+
13+
if "%DRONE_JOB_BUILDTYPE%" == "boost" (
14+
15+
echo "Running boost job"
16+
echo '==================================> INSTALL'
17+
REM there seems to be some problem with b2 bootstrap on Windows
18+
REM when CXX env variable is set
19+
SET "CXX="
20+
21+
git clone https://github.com/boostorg/boost-ci.git boost-ci-cloned --depth 1
22+
cp -prf boost-ci-cloned/ci .
23+
rm -rf boost-ci-cloned
24+
REM source ci/travis/install.sh
25+
REM The contents of install.sh below:
26+
27+
for /F %%i in ("%DRONE_REPO%") do @set SELF=%%~nxi
28+
SET BOOST_CI_TARGET_BRANCH=!TRAVIS_BRANCH!
29+
SET BOOST_CI_SRC_FOLDER=%cd%
30+
if "%BOOST_BRANCH%" == "" (
31+
SET BOOST_BRANCH=develop
32+
if "%BOOST_CI_TARGET_BRANCH%" == "master" set BOOST_BRANCH=master
33+
)
34+
35+
call ci\common_install.bat
36+
37+
echo '==================================> ZLIB'
38+
git clone --branch v1.2.13 https://github.com/madler/zlib.git !BOOST_ROOT!\zlib-src --depth 1
39+
set ZLIB_SOURCE=!BOOST_ROOT!\zlib-src
40+
41+
echo using zlib : : : ^<warnings^>off ^; >> !BOOST_ROOT!\project-config.jam
42+
43+
REM Customizations
44+
cd
45+
popd
46+
pushd !BOOST_ROOT!\libs
47+
git clone https://github.com/cppalliance/capy -b !BOOST_BRANCH! --depth 1
48+
popd
49+
50+
echo '==================================> COMPILE'
51+
52+
REM set B2_TARGETS=libs/!SELF!/test libs/!SELF!/example
53+
set B2_TARGETS=libs/!SELF!/test
54+
call !BOOST_ROOT!\libs\!SELF!\ci\build.bat
55+
56+
)

.drone/drone.sh

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
#!/bin/bash
2+
3+
# Copyright 2020 Rene Rivera, Sam Darwin
4+
# Distributed under the Boost Software License, Version 1.0.
5+
# (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt)
6+
7+
set -xe
8+
9+
export DRONE_BUILD_DIR=$(pwd)
10+
export VCS_COMMIT_ID=$DRONE_COMMIT
11+
export GIT_COMMIT=$DRONE_COMMIT
12+
export REPO_NAME=$DRONE_REPO
13+
export USER=$(whoami)
14+
export CC=${CC:-gcc}
15+
export PATH=~/.local/bin:/usr/local/bin:$PATH
16+
export TRAVIS_BUILD_DIR=$(pwd)
17+
export TRAVIS_BRANCH=$DRONE_BRANCH
18+
export TRAVIS_EVENT_TYPE=$DRONE_BUILD_EVENT
19+
20+
common_install () {
21+
if [ -z "$SELF" ]; then
22+
export SELF=`basename $REPO_NAME`
23+
fi
24+
25+
git clone https://github.com/boostorg/boost-ci.git boost-ci-cloned --depth 1
26+
[ "$SELF" == "boost-ci" ] || cp -prf boost-ci-cloned/ci .
27+
rm -rf boost-ci-cloned
28+
29+
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
30+
unset -f cd
31+
fi
32+
33+
export BOOST_CI_TARGET_BRANCH="$TRAVIS_BRANCH"
34+
export BOOST_CI_SRC_FOLDER=$(pwd)
35+
36+
. ./ci/common_install.sh
37+
38+
if [ ! -d "$BOOST_ROOT/libs/capy" ]; then
39+
pushd $BOOST_ROOT/libs
40+
git clone https://github.com/cppalliance/capy -b $BOOST_BRANCH --depth 1
41+
popd
42+
fi
43+
}
44+
45+
if [[ $(uname) == "Linux" && "$B2_ASAN" == "1" ]]; then
46+
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space > /dev/null
47+
fi
48+
49+
if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then
50+
51+
echo '==================================> INSTALL'
52+
53+
common_install
54+
55+
echo '==================================> SCRIPT'
56+
57+
. $BOOST_ROOT/libs/$SELF/ci/build.sh
58+
59+
elif [ "$DRONE_JOB_BUILDTYPE" == "codecov" ]; then
60+
61+
echo '==================================> INSTALL'
62+
63+
common_install
64+
65+
echo '==================================> SCRIPT'
66+
67+
cd $BOOST_ROOT/libs/$SELF
68+
ci/travis/codecov.sh
69+
70+
elif [ "$DRONE_JOB_BUILDTYPE" == "valgrind" ]; then
71+
72+
echo '==================================> INSTALL'
73+
74+
common_install
75+
76+
echo '==================================> SCRIPT'
77+
78+
cd $BOOST_ROOT/libs/$SELF
79+
ci/travis/valgrind.sh
80+
81+
elif [ "$DRONE_JOB_BUILDTYPE" == "coverity" ]; then
82+
83+
echo '==================================> INSTALL'
84+
85+
common_install
86+
87+
echo '==================================> SCRIPT'
88+
89+
if [ -n "${COVERITY_SCAN_NOTIFICATION_EMAIL}" -a \( "$TRAVIS_BRANCH" = "develop" -o "$TRAVIS_BRANCH" = "master" \) -a \( "$DRONE_BUILD_EVENT" = "push" -o "$DRONE_BUILD_EVENT" = "cron" \) ] ; then
90+
cd $BOOST_ROOT/libs/$SELF
91+
ci/travis/coverity.sh
92+
fi
93+
94+
elif [ "$DRONE_JOB_BUILDTYPE" == "cmake1" ]; then
95+
96+
set -xe
97+
98+
echo '==================================> INSTALL'
99+
100+
# already in the image
101+
# pip install --user cmake
102+
103+
echo '==================================> SCRIPT'
104+
105+
export SELF=`basename $REPO_NAME`
106+
BOOST_BRANCH=develop && [ "$DRONE_BRANCH" == "master" ] && BOOST_BRANCH=master || true
107+
echo BOOST_BRANCH: $BOOST_BRANCH
108+
cd ..
109+
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
110+
cd boost-root
111+
112+
mkdir -p libs/$SELF
113+
cp -r $DRONE_BUILD_DIR/* libs/$SELF
114+
# git submodule update --init tools/boostdep
115+
git submodule update --init --recursive
116+
117+
# Customizations
118+
if [ ! -d "$BOOST_ROOT/libs/capy" ]; then
119+
pushd $BOOST_ROOT/libs
120+
git clone https://github.com/cppalliance/capy -b $BOOST_BRANCH --depth 1
121+
popd
122+
fi
123+
cd libs/$SELF
124+
mkdir __build__ && cd __build__
125+
cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
126+
cmake --build . --target install
127+
128+
elif [ "$DRONE_JOB_BUILDTYPE" == "cmake-superproject" ]; then
129+
130+
echo '==================================> INSTALL'
131+
132+
common_install
133+
134+
echo '==================================> COMPILE'
135+
136+
# Warnings as errors -Werror not building. Remove for now:
137+
# export CXXFLAGS="-Wall -Wextra -Werror"
138+
export CXXFLAGS="-Wall -Wextra"
139+
export CMAKE_OPTIONS=${CMAKE_OPTIONS:--DBUILD_TESTING=ON}
140+
export CMAKE_SHARED_LIBS=${CMAKE_SHARED_LIBS:-1}
141+
142+
mkdir __build_static
143+
cd __build_static
144+
cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 ${CMAKE_OPTIONS} \
145+
-DBOOST_INCLUDE_LIBRARIES=$SELF ..
146+
cmake --build .
147+
ctest --output-on-failure -R boost_$SELF
148+
149+
cd ..
150+
151+
if [ "$CMAKE_SHARED_LIBS" = 1 ]; then
152+
153+
mkdir __build_shared
154+
cd __build_shared
155+
cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 ${CMAKE_OPTIONS} \
156+
-DBOOST_INCLUDE_LIBRARIES=$SELF -DBUILD_SHARED_LIBS=ON ..
157+
cmake --build .
158+
ctest --output-on-failure -R boost_$SELF
159+
160+
fi
161+
162+
fi

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

0 commit comments

Comments
 (0)