summaryrefslogtreecommitdiff
path: root/bitbucket-pipelines.yml
diff options
context:
space:
mode:
Diffstat (limited to 'bitbucket-pipelines.yml')
-rw-r--r--bitbucket-pipelines.yml22
1 files changed, 13 insertions, 9 deletions
diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml
index 81f0bdde..654fc772 100644
--- a/bitbucket-pipelines.yml
+++ b/bitbucket-pipelines.yml
@@ -31,12 +31,16 @@ pipelines:
- cmake --preset debug -GNinja
- cmake --build --preset debug
- ctest --preset debug --output-junit test-results/all.xml
- - step:
- name: Release Build
- runs-on:
- - 'self.hosted'
- - 'linux.shell'
- script:
- - git submodule update --init
- - cmake --preset release -GNinja
- - cmake --build --preset release
+ pull-requests:
+ '**': # for all branches
+ - step:
+ name: Release Build
+ runs-on:
+ - 'self.hosted'
+ - 'linux.shell'
+ script:
+ - git submodule update --init
+ - cmake --preset release -GNinja
+ - cmake --build --preset release
+ - clang-tidy -p cmake-build-release $(git diff origin/$BITBUCKET_PR_DESTINATION_BRANCH --name-only --diff-filter=AM | grep -E '\.(h|hpp|cpp)$')
+ - cppcheck --enable=all --suppressions-list=.cppcheck-suppressions --project=cmake-build-release/compile_commands.json --error-exitcode=1