Add clang-format
This commit is contained in:
parent
5501128100
commit
2b80bf5bed
1 changed files with 0 additions and 18 deletions
|
@ -1,11 +1,4 @@
|
||||||
steps:
|
steps:
|
||||||
- name: Format-Code
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache g++ libc-dev git clang clang-extra-tools
|
|
||||||
- echo "Formatting project..."
|
|
||||||
- find ./ -type f -name "*.cpp" -o -name "*.h" | xargs clang-format -i
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
|
@ -58,17 +51,6 @@ steps:
|
||||||
- Build
|
- Build
|
||||||
- Test-Debian
|
- Test-Debian
|
||||||
|
|
||||||
- name: push-commit
|
|
||||||
image: appleboy/drone-git-push
|
|
||||||
settings:
|
|
||||||
remote_name: origin
|
|
||||||
commit_message: "Apply clang-format changes [skip ci]"
|
|
||||||
commit: true
|
|
||||||
ssh_key:
|
|
||||||
from_secret: PUSH_SSH
|
|
||||||
depends_on:
|
|
||||||
- Confirm-Build
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Add table
Reference in a new issue