summaryrefslogtreecommitdiff
path: root/bitbucket-pipelines.yml
diff options
context:
space:
mode:
Diffstat (limited to 'bitbucket-pipelines.yml')
-rw-r--r--bitbucket-pipelines.yml46
1 files changed, 25 insertions, 21 deletions
diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml
index 654fc772..0b937bd8 100644
--- a/bitbucket-pipelines.yml
+++ b/bitbucket-pipelines.yml
@@ -1,36 +1,40 @@
pipelines:
default:
+ - step:
+ name: Static checks
+ runs-on:
+ - 'self.hosted'
+ - 'linux.shell'
+ script:
+ - python --version
+ - pylint scripts/check_license.py
+ - pylint scripts/rekonf.py
+ - pylint scripts/qrc_lint.py
+ - git submodule update --init --depth=1
+ - cmake --preset debug -GNinja
+ - git ls-files | grep '\.qrc$' | xargs -n1 ./scripts/qrc_lint.py
+ - ninja -C cmake-build-debug rekonq_check_license
- parallel:
- step:
- name: pylint
+ name: Debug Build and Test
runs-on:
- 'self.hosted'
- 'linux.shell'
script:
- - python --version
- - pylint scripts/check_license.py
- - pylint scripts/rekonf.py
- - pylint scripts/qrc_lint.py
+ - git submodule update --init --depth=1
+ - cmake --preset debug -GNinja
+ - cmake --build --preset debug
+ - ctest --preset debug --output-junit test-results/all.xml
- step:
- name: Static checks
+ name: Devel Build and Test
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
+ - git submodule update --init --depth=1
+ - cmake --preset devel -GNinja
+ - cmake --build --preset devel
+ - ctest --preset devel --output-junit test-results/all.xml
pull-requests:
'**': # for all branches
- step:
@@ -39,7 +43,7 @@ pipelines:
- 'self.hosted'
- 'linux.shell'
script:
- - git submodule update --init
+ - git submodule update --init --depth=1
- 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)$')