Commit 0ae060b1 authored by Felipe Lema's avatar Felipe Lema
Browse files

move code to a separate script to avoid docker messing up

it seems that using $ and | is not being friendly to docker
parent fbc4b681
Pipeline #70814 failed with stage
in 1 minute and 6 seconds
#!/bin/bash -fxv
set -e
wget -c --output-document=.clang-format https://invent.kde.org/frameworks/extra-cmake-modules/raw/master/kde-modules/clang-format.cmake
git diff-tree --no-commit-id --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA -- \
| grep -P '[.](c|cc|cpp|hpp|h)$' \
| xargs --no-run-if-empty --verbose clang-format-11 --dry-run -Werror
......@@ -12,5 +12,4 @@ clang_format:
- apt-get install --yes --no-install-recommends wget ca-certificates git clang-format-11
- update-ca-certificates
script:
- wget -c --output-document=.clang-format https://invent.kde.org/frameworks/extra-cmake-modules/raw/master/kde-modules/clang-format.cmake
- git diff-tree --no-commit-id --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA -- | grep -P '[.](c|cc|cpp|hpp|h)$' | xargs --no-run-if-empty --verbose clang-format-11 --dry-run -Werror
- ./.gitlab-ci.script
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment