mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
travis-ci coverity properly run and submit scan
- the ignored warning (-Wno-missing-field-initializers) can be dropped in the future when GCC 4.8 is no longer supported
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -7,20 +7,10 @@ git:
|
|||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- env: BUILD_TARGET=coverity_scan
|
- os: linux
|
||||||
if: branch = coverity_scan
|
if: branch = coverity_scan
|
||||||
os: linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-7
|
|
||||||
env:
|
|
||||||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- eval "${MATRIX_EVAL}"
|
|
||||||
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|||||||
@@ -347,8 +347,6 @@ function(px4_add_common_flags)
|
|||||||
-Winit-self
|
-Winit-self
|
||||||
-Wlogical-op
|
-Wlogical-op
|
||||||
-Wmissing-declarations
|
-Wmissing-declarations
|
||||||
-Wmissing-field-initializers
|
|
||||||
|
|
||||||
-Wpointer-arith
|
-Wpointer-arith
|
||||||
-Wshadow
|
-Wshadow
|
||||||
-Wuninitialized
|
-Wuninitialized
|
||||||
@@ -356,6 +354,7 @@ function(px4_add_common_flags)
|
|||||||
-Wunused-variable
|
-Wunused-variable
|
||||||
|
|
||||||
-Wno-implicit-fallthrough # set appropriate level and update
|
-Wno-implicit-fallthrough # set appropriate level and update
|
||||||
|
-Wno-missing-field-initializers
|
||||||
-Wno-missing-include-dirs # TODO: fix and enable
|
-Wno-missing-include-dirs # TODO: fix and enable
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user