diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-11-24 22:17:15 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-12-05 15:51:00 +0000 |
commit | 5b124352feb959f0e4370bdeaa4b6b95d068610d (patch) | |
tree | 2ed6f4224982b5786ebce8e8e30b22828c6c0974 /.travis.yml | |
parent | e7ee801c5a7b9b46115c708b906875ad887566cf (diff) |
Enable clang-tidy job on Travis
This runs predefined clang-tidy checks on the QBS sources, excluding
examples and tests
Most checks are displayed as warings, however, some checks are treated
as errors to avoid adding regressions in the new code
clang-analyzer-* checks are not enabled due to performance reasons
(otherwise, Travis job hits 50 min)
Change-Id: I686003d2526a11d90fc74c88104b4357d67620d1
Reviewed-by: Richard Weickelt <richard@weickelt.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index c0a64367a..4917087a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,6 +50,15 @@ jobs: script: - docker-compose run bionic qbs build ${BUILD_OPTIONS} + - <<: *build-on-bionic + name: With Qbs on Ubuntu bionic (linux_clang64 & clang_tidy) + env: + BUILD_OPTIONS="profile:qt-clang_64 modules.cpp.compilerWrapper:ccache" + services: + - docker + script: + - docker-compose run --rm bionic scripts/run-analyzer.sh + - &build-on-macos stage: Build Qbs and and run autotests name: With Qbs on macOS (xcode 10.3) |