summaryrefslogtreecommitdiff
path: root/bitbucket-pipelines.yml
blob: 654fc772fd739a60c6f12310ec9a6f4b5748f442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
pipelines:
  default:
    - parallel:
        - step:
            name: pylint
            runs-on:
              - 'self.hosted'
              - 'linux.shell'
            script:
              - python --version
              - pylint scripts/check_license.py
              - pylint scripts/rekonf.py
              - pylint scripts/qrc_lint.py
        - step:
            name: Static checks
            runs-on:
              - 'self.hosted'
              - 'linux.shell'
            script:
              - git submodule update --init
              - cmake --preset debug -GNinja
              - ninja -C cmake-build-debug rekonq_check_license
              - git ls-files | grep '\.qrc$' | xargs -n1 ./scripts/qrc_lint.py
    - step:
        name: Debug Build and Test
        runs-on:
          - 'self.hosted'
          - 'linux.shell'
        script:
          - git submodule update --init
          - cmake --preset debug -GNinja
          - cmake --build --preset debug
          - ctest --preset debug --output-junit test-results/all.xml
  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