From a7eb19e3f469141c5b09509fe5756c776ee510fd Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Fri, 23 Oct 2015 18:51:53 +0200 Subject: [PATCH 1/8] [tests] travis runs coverity scan --- .travis.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.travis.yml b/.travis.yml index e852023cd6e..a2e314f5d06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,22 @@ script: - arm-none-eabi-gcc --version - make test +env: + global: + # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created + # via the "travis encrypt" command using the project repo's public key + - secure: "QGE7s/sTIX3F4hG8YYbpYjB2x0YsUUo9qHf+Dv5BqNcTtZ2TLO0tHPWxoI5wlRLiMEOOnINNwYk7ooM3oOXa0Fm9urja9k78cFutbbDtvGD6DjUFajwJ0KnwXnLulCgG+l67umGitSazQpyEQE4pvX/8EnB9/pgq706DlmCbkds=" + +addons: + coverity_scan: + project: + name: "paparazzi/paparazzi" + description: "Build submitted via Travis CI" + notification_email: paparazzi-builds@nongnu.org + build_command_prepend: "make ext" + build_command: "make" + branch_pattern: coverity_scan + notifications: webhooks: urls: From 44b80e9dfd5cd395797fc29205e557c3762cf4b9 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Thu, 7 Jul 2016 13:14:07 +0200 Subject: [PATCH 2/8] [tests] coverity: run full make test we'll see if that is too much... --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a2e314f5d06..7a6836a91b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ addons: description: "Build submitted via Travis CI" notification_email: paparazzi-builds@nongnu.org build_command_prepend: "make ext" - build_command: "make" + build_command: "make test" branch_pattern: coverity_scan notifications: From 48421dbe81c9ab6e9a360768b8a58fdb1672c6c1 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Thu, 7 Jul 2016 14:31:46 +0200 Subject: [PATCH 3/8] [test] coverity: only build with gcc and disable normal make test hopefully this allows it to run in time --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7a6836a91b6..3729e5c3ad9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ dist: trusty language: c compiler: - gcc - - clang +# - clang before_install: - sudo add-apt-repository ppa:paparazzi-uav/ppa -y - sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y @@ -12,7 +12,7 @@ install: - sudo apt-get install -y paparazzi-dev paparazzi-jsbsim gcc-arm-embedded libipc-run-perl script: - arm-none-eabi-gcc --version - - make test +# - make test env: global: From 47c61afda985e059e09f35ca0a5b054ab93461c9 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Thu, 7 Jul 2016 14:35:26 +0200 Subject: [PATCH 4/8] [test] coverity: only run make test if not running coverity tests --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3729e5c3ad9..318cb51d619 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ install: - sudo apt-get install -y paparazzi-dev paparazzi-jsbsim gcc-arm-embedded libipc-run-perl script: - arm-none-eabi-gcc --version -# - make test + - if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make test; fi env: global: From 9feb613245529e48a55203a6b669573fd5d6f137 Mon Sep 17 00:00:00 2001 From: Michal Podhradsky Date: Fri, 8 Jul 2016 17:29:38 -0700 Subject: [PATCH 5/8] Change coverity compiler to arn-embedded This should allow coverity to use arm-none-eabi-gcc instead of default gcc, see https://github.com/Nitrokey/nitrokey-pro-firmware/commit/f2f98c7c59874fddc006e1d6607438f60bc2f0a8 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 318cb51d619..6e2896759ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ addons: name: "paparazzi/paparazzi" description: "Build submitted via Travis CI" notification_email: paparazzi-builds@nongnu.org - build_command_prepend: "make ext" + build_command_prepend: "make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc" build_command: "make test" branch_pattern: coverity_scan From b40c9474716929fd25d2bdbb9be291c55e34e106 Mon Sep 17 00:00:00 2001 From: podhrmic Date: Wed, 13 Jul 2016 19:06:05 -0700 Subject: [PATCH 6/8] Set coverity for arm-embedded compiler --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6e2896759ba..ad626c8c182 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ addons: name: "paparazzi/paparazzi" description: "Build submitted via Travis CI" notification_email: paparazzi-builds@nongnu.org - build_command_prepend: "make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc" + build_command_prepend: "make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template build_command: "make test" branch_pattern: coverity_scan From c57b9264533bfed0bb5a450dde4443fd6b9552f4 Mon Sep 17 00:00:00 2001 From: Michal Podhradsky Date: Wed, 13 Jul 2016 19:15:56 -0700 Subject: [PATCH 7/8] Typo in travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ad626c8c182..936f3b7f296 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,7 @@ addons: name: "paparazzi/paparazzi" description: "Build submitted via Travis CI" notification_email: paparazzi-builds@nongnu.org - build_command_prepend: "make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template + build_command_prepend: "make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template" build_command: "make test" branch_pattern: coverity_scan From 1a980fa0c25a63b3b03795c357c8e1f0592c06d9 Mon Sep 17 00:00:00 2001 From: Michal Podhradsky Date: Thu, 14 Jul 2016 08:45:01 -0700 Subject: [PATCH 8/8] An attempt to fix travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 936f3b7f296..8a679217cfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ addons: name: "paparazzi/paparazzi" description: "Build submitted via Travis CI" notification_email: paparazzi-builds@nongnu.org - build_command_prepend: "make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template" - build_command: "make test" + build_command_prepend: make ext; cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template + build_command: make test branch_pattern: coverity_scan notifications: