-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitLab Runner
committed
Nov 10, 2023
1 parent
05e2495
commit 3f96f11
Showing
9 changed files
with
143 additions
and
19 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 |
---|---|---|
@@ -1 +0,0 @@ | ||
# Список директорий, которые не будут исключены для проверки cppcheck (относительно корня проекта) | ||
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 |
---|---|---|
@@ -1,10 +0,0 @@ | ||
# Список подавлений ложных предупреждений cppcheck относительно корня проекта. | ||
|
||
# Для конкретной строки: | ||
# unusedFunction:./daemon/demod.cpp:1 | ||
|
||
# Для всего файла: | ||
# unusedFunction:./daemon/demod.cpp | ||
|
||
# Для всего проекта: | ||
# unusedFunction: | ||
Validating CODEOWNERS rules …
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 @@ | ||
* @migashko |
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,35 @@ | ||
name: C++ CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- mambaru | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install packages | ||
run: | | ||
export GITHUB_REPOSITORY=${GITHUB_REPOSITORY} | ||
bash setup.sh | ||
working-directory: ./.github/workflows | ||
|
||
- name: Coverage report and push to master branches | ||
run: | | ||
echo "Субмодули подключаються при первой сборке (фиксируем их)" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Vladimir Migashko" | ||
git config pull.rebase true | ||
git pull origin master | ||
make coverage-report | ||
git add . | ||
git commit -am "[subm] build submodule autocommit" || true | ||
pushd build | ||
export CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} | ||
bash <(curl -s https://codecov.io/bash) || echo "Coverage FAIL!" | ||
popd | ||
git push https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git HEAD:master | ||
git push https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git :mambaru || echo "Delete mambaru FAIL" |
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,55 @@ | ||
name: C++ CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: setup | ||
run: | | ||
export GITHUB_REPOSITORY=${GITHUB_REPOSITORY} | ||
bash setup.sh | ||
working-directory: ./.github/workflows | ||
|
||
|
||
- name: make coverage | ||
run: | | ||
make coverage | ||
pushd build | ||
export CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} | ||
bash <(curl -s https://codecov.io/bash) | ||
popd | ||
- name: make docs | ||
run: | | ||
make doc | ||
- name: push docs | ||
run: | | ||
git clone -b gh-pages https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git /tmp/gh-pages | ||
docdir="$PWD/docs/html/" | ||
pushd /tmp/gh-pages | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Vladimir Migashko" | ||
rsync -arv --update $docdir ./ | ||
git add --all | ||
COMMIT_MESSAGE="Update pages on $(date +'%Y-%m-%d %H:%M:%S')" | ||
git diff-index --quiet --cached HEAD -- && echo "No changes!" && exit 0 || echo $COMMIT_MESSAGE | ||
git commit -m "${COMMIT_MESSAGE}" | ||
git push https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git gh-pages:gh-pages | ||
popd | ||
- name: push tag | ||
run: | | ||
git pull --tags --force https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git | ||
tag=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
echo " tag=$tag" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Vladimir Migashko" | ||
git tag --force -a $tag -m "update from github actions" | ||
git push --force --tags https://${{ secrets.ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git HEAD:master |
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,13 @@ | ||
#!/bin/bash | ||
|
||
sudo locale-gen ru_RU | ||
sudo locale-gen ru_RU.UTF-8 | ||
sudo update-locale | ||
sudo apt-get install -y lcov doxygen | ||
if [[ "${GITHUB_REPOSITORY}" == *"prefixdb"* ]] || [[ "${GITHUB_REPOSITORY}" == *"btp"* ]]; then | ||
sudo apt-get install libsnappy-dev | ||
sudo apt-get install zlib1g-dev | ||
sudo apt-get install libbz2-dev | ||
sudo apt-get install liblz4-dev | ||
sudo apt-get install libzstd-dev | ||
fi |
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,39 @@ | ||
dist: trusty | ||
sudo: required | ||
|
||
language: cpp | ||
|
||
os: | ||
- linux | ||
|
||
git: | ||
submodules: false | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
|
||
install: | ||
- sudo apt-get install -y libc++-dev libboost-dev | ||
- sudo apt-get install -y libboost-system-dev libboost-program-options-dev | ||
- sudo apt-get install -y libboost-filesystem-dev libboost-date-time-dev libboost-regex-dev valgrind doxygen | ||
- [[ "${TRAVIS_REPO_SLUG}" == *"prefixdb"* ]] && sudo apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | ||
|
||
compiler: | ||
- g++ | ||
- clang++ | ||
|
||
branches: | ||
only: | ||
- mambaru | ||
- master | ||
|
||
script: | ||
- git submodule sync | ||
- git submodule update --init --force | ||
- mkdir -p build | ||
- pushd build | ||
- cmake .. -DCMAKE_CXX_COMPILER=$TRAVIS_COMPILER -DCMAKE_CXX_STANDARD=11 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DPARANOID_WARNINGS=ON -DNO_MEMCHECK=ON | ||
- cmake --build . | ||
- ctest --output-on-failure | ||
- make clean | ||
- popd |
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
# Список директорий, которые не будут исключены для проверки cppcheck (относительно корня проекта) | ||
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 |
---|---|---|
@@ -1,7 +0,0 @@ | ||
useStlAlgorithm: | ||
syntaxError: | ||
unusedFunction: | ||
unknownMacro: | ||
unmatchedSuppression: | ||
functionConst: | ||
functionStatic: | ||