diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b61196319d062bf570316d0d8375d24b2d140758..e1bbd5616fca3085248ab8e1b7739427156df1d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,7 +90,7 @@ test:worker:clang-format: image: gitlab.fit.cvut.cz:5000/algorithms-library-toolkit/infrastructure/ci-docker-images/alt-builder:latest script: - ANCESTOR=$(git merge-base origin/master HEAD) # find nearest common ancestor between HEAD and master - - git diff $ANCESTOR..HEAD | tee orig.patch | /usr/share/clang/clang-format-10/clang-format-diff.py -p1 | sed "s/+++ /+++ b\// g;s/--- /--- a\//g" > clang-format.patch + - git diff $ANCESTOR..HEAD | tee orig.patch | /usr/share/clang/clang-format-11/clang-format-diff.py -p1 | sed "s/+++ /+++ b\// g;s/--- /--- a\//g" > clang-format.patch - if [[ -s clang-format.patch ]]; then cat clang-format.patch; echo "Download the patch in the artifact directory"; false; fi # file exists and has nonzero size - fail artifacts: when: always