Skip to content

Commit

Permalink
cmake-ci upgrade autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
GitLab Runner committed Nov 10, 2023
1 parent 05e2495 commit 3f96f11
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 19 deletions.
1 change: 0 additions & 1 deletion .ci/.orig/.cppcheck/exclude_folders.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# Список директорий, которые не будут исключены для проверки cppcheck (относительно корня проекта)
10 changes: 0 additions & 10 deletions .ci/.orig/.cppcheck/suppressions.txt
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:
1 change: 1 addition & 0 deletions .ci/.orig/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @migashko
35 changes: 35 additions & 0 deletions .ci/.orig/.github/workflows/mambaru.yml
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"
55 changes: 55 additions & 0 deletions .ci/.orig/.github/workflows/master.yml
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
13 changes: 13 additions & 0 deletions .ci/.orig/.github/workflows/setup.sh
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
39 changes: 39 additions & 0 deletions .ci/.orig/.travis.yml
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
1 change: 0 additions & 1 deletion .cppcheck/exclude_folders.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# Список директорий, которые не будут исключены для проверки cppcheck (относительно корня проекта)
7 changes: 0 additions & 7 deletions .cppcheck/suppressions.txt
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
useStlAlgorithm:
syntaxError:
unusedFunction:
unknownMacro:
unmatchedSuppression:
functionConst:
functionStatic:

0 comments on commit 3f96f11

Please sign in to comment.