Skip to content

Commit

Permalink
Merge pull request #679 from srz-zumix/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
srz-zumix committed Sep 3, 2022
2 parents 953f9ad + 0e15f15 commit 1a5e5ea
Show file tree
Hide file tree
Showing 136 changed files with 1,890 additions and 518 deletions.
15 changes: 15 additions & 0 deletions .ci/awesome_bot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

awesome_bot_with_retry() {
local attempt_max=5
local -i attempt_num=1
until awesome_bot "$@"; do
if ((attempt_num == attempt_max)); then
exit 1
fi
echo "retry ${attempt_num}"
((attempt_num++))
done
}

awesome_bot_with_retry "$@"
4 changes: 2 additions & 2 deletions .ci/azure_pipelines/template-make-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ steps:
echo unpackaged=true >> ~/.config/apport/settings
cat ~/.config/apport/settings
sudo apt-get update
sudo apt-get install language-pack-ja
sudo apt-get install -qq -y language-pack-ja
sudo update-locale LANG=${{ parameters.LOCALE_CTYPE }}
sudo localectl set-locale LANG=${{ parameters.LOCALE_CTYPE }}
locale -a
Expand All @@ -39,7 +39,7 @@ steps:
secureFile: hub
- script: |
sudo apt-get update
sudo apt-get install -y rubygems
sudo apt-get install -qq -y rubygems
sudo gem install hub
hub --version
cp $(Agent.TempDirectory)/hub ~/.config/hub
Expand Down
4 changes: 2 additions & 2 deletions .ci/linux/install-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ fi
wget -qO - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y "deb http://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${CLANG_VERSION} main"
sudo apt-get -y --allow-unauthenticated update
sudo apt-get -qq install "clang-${CLANG_VERSION}"
sudo apt-get install -qq -y "clang-${CLANG_VERSION}"


if $INSATLL_CLANG_TOOLS; then
sudo apt-get -y --force-yes -qq install "clang-tools-${CLANG_VERSION}"
sudo apt-get install --force-yes -qq -y "clang-tools-${CLANG_VERSION}"
CLANG_SLAVES="--slave /usr/bin/scan-build scan-build /usr/bin/scan-build-${CLANG_VERSION}"
fi

Expand Down
4 changes: 2 additions & 2 deletions .ci/linux/install-gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ fi
MAJOR_VERSION=$(echo ${VERSION_ID} | cut -d '.' -f1)

sudo apt-get -y --allow-unauthenticated update
sudo apt-get install software-properties-common
sudo apt-get install -qq -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
if [ "${MAJOR_VERSION}" -ge 19 ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/ppa
fi

sudo apt-get -y --allow-unauthenticated update
sudo apt-get -qq install "gcc-${GCC_VERSION}" "g++-${GCC_VERSION}"
sudo apt-get install -qq -y "gcc-${GCC_VERSION}" "g++-${GCC_VERSION}"
sudo update-alternatives --install /usr/bin/gcc gcc \
"/usr/bin/gcc-${GCC_VERSION}" 1990 \
--slave /usr/bin/g++ g++ "/usr/bin/g++-${GCC_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion .circleci/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ aliases:
name: SetUp
command: |
sudo apt-get -y --allow-unauthenticated update && \
sudo apt-get install software-properties-common && \
sudo apt-get install -qq -y software-properties-common && \
CLANG_VERSION="<< parameters.clang-version >>" ./.ci/linux/install-clang.sh && \
./.ci/linux/install-gcc.sh
- &save_cache
Expand Down
15 changes: 15 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Checks: "*\
,-__llvm_libc-*\
,-cert-err58-cpp\
,-clang-analyzer-*\
,-cppcoreguidelines-macro-usage\
,-cppcoreguidelines-explicit-virtual-functions\
,-hicpp-use-override\
,-llvm-namespace-comment\
,-llvm-include-order\
,-modernize-use-override\
,-modernize-use-trailing-return-type\
,-readability-isolate-declaration\
"
# WarningsAsErrors: >
# *
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ steps:
image: teeks99/clang-ubuntu:13
# pull: if-not-exists
commands:
- apt-get update && apt-get -qq -y install curl
- apt-get update && apt-get install -qq -y curl
- export CC=clang-$${DRONE_STEP_NAME}
- export CXX=clang++-$${DRONE_STEP_NAME}
- "cp -R ./test ./$${DRONE_STEP_NAME} && cd $${DRONE_STEP_NAME}"
Expand Down Expand Up @@ -195,7 +195,7 @@ steps:
image: teeks99/clang-ubuntu:3.9
# pull: if-not-exists
commands:
- apt-get update && apt-get -qq -y install curl
- apt-get update && apt-get install -qq -y curl
- export CC=clang-$${DRONE_STEP_NAME}
- export CXX=clang++-$${DRONE_STEP_NAME}
- "cp -R ./test ./$${DRONE_STEP_NAME} && cd $${DRONE_STEP_NAME}"
Expand Down Expand Up @@ -332,7 +332,7 @@ steps:
image: teeks99/clang-ubuntu:13
# pull: if-not-exists
commands:
- apt-get update && apt-get -qq -y install curl
- apt-get update && apt-get install -qq -y curl
- export CC=clang-$${DRONE_STEP_NAME}
- export CXX=clang++-$${DRONE_STEP_NAME}
- "cp -R ./test ./$${DRONE_STEP_NAME} && cd $${DRONE_STEP_NAME}"
Expand Down
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,13 @@ indent_style = tab

[Dockerfile]
indent_size = 2

# Docker

[Earthfile]
indent_size = 2

# Dagger
[*.cue]
indent_style = space
indent_size = 4
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Dockerfile text eol=lf
.ci export-ignore
.circleci export-ignore
.github export-ignore
.semaphre export-ignore
.semaphore export-ignore
*.yml export-ignore
*.yaml export-ignore
Jenkinsfile export-ignore
Expand All @@ -79,4 +79,3 @@ docs/* linguist-documentation
.circleci/* linguist-documentation
.semaphore/* linguist-documentation
.github/* linguist-documentation
.semaphore/* linguist-documentation
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/ci-services-issue-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ assignees: ''
* [ ] Semaphore
* [ ] TeamCity Cloud
* [ ] Travis CI
* [ ] Wercker
16 changes: 9 additions & 7 deletions .github/actions/composite/test-info/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ runs:
using: "composite"
steps:
- name: clean
shell: bash
# shell: ${{ inputs.shell-cmd }}
shell: ${{ inputs.shell-cmd }}
if: ${{ inputs.before-clean }}
run: |
if ${{ inputs.before-clean }}; then make -C test clean; fi
make -C test clean
- name: compiler info
shell: bash
# shell: ${{ inputs.shell-cmd }}
shell: ${{ inputs.shell-cmd }}
run: |
make -C test showcxxversion
make -C test showcxxmacros
- name: stdlib
shell: bash
# shell: ${{ inputs.shell-cmd }}
shell: ${{ inputs.shell-cmd }}
run: |
make -C test check_stdlib
- name: stdlib features
shell: ${{ inputs.shell-cmd }}
run: |
make -C test showstdlbfeatures
18 changes: 18 additions & 0 deletions .github/actions/composite/test-report/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Test Report'
description: 'test report'
inputs:
report_paths:
description: 'test report path'
required: true

runs:
using: "composite"
steps:
- name: Test Report
uses: mikepenz/action-junit-report@v2
with:
report_paths: "${{ inputs.report_paths }}"
- name: Test Summary
uses: test-summary/action@v1
with:
paths: "${{ inputs.report_paths }}"
2 changes: 1 addition & 1 deletion .github/workflows/awesome-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: check
run: |
# shellcheck disable=SC2086
awesome_bot README.md ${ASESOME_BOT_OPTION}
.ci/awesome_bot.sh README.md ${ASESOME_BOT_OPTION}
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: coverage
run: |
make -C test coverage
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@master
- name: install dependencies
run: |
sudo apt-get install lcov
sudo apt-get install -qq -y lcov
- name: info
run: |
make -C test showcxxmacros
Expand Down
Loading

0 comments on commit 1a5e5ea

Please sign in to comment.