mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-05 18:51:00 +08:00
When adding a test node to a makefile section, with required compilation flags, include and other options, all the files (not arch dependent files) can be compiled with a TAP compatible program, included in the standard tests of the CI servers. Not all module's XML files are converted, but a large part of the most important parts are already covered. More will be added later. The number of tested airframes (full compilation of all targets) have been reduced to speed the CI compile time but still covers the relevant architecture and boards. The main benefit is that the overall coverage is already better than before as previous test aircraft were compiling more or less the same part of the airborne code, while this new mechanism is more efficient to test modules not included in any config.
40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
sudo: required
|
|
dist: bionic
|
|
language: c
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
before_install:
|
|
- sudo add-apt-repository ppa:paparazzi-uav/ppa -y
|
|
- sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa -y
|
|
- sudo apt-get update -q
|
|
install:
|
|
- sudo apt-get install -y --allow-unauthenticated paparazzi-dev paparazzi-jsbsim gcc-arm-embedded gcc-arm-linux-gnueabi g++-arm-linux-gnueabi libipc-run-perl rustc cargo libgazebo9-dev libgps-dev python3-lxml
|
|
script:
|
|
- arm-none-eabi-gcc --version
|
|
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then make test_all_confs; else make test; fi; fi
|
|
|
|
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; cov-configure --comptype gcc --compiler arm-none-eabi-gcc --template
|
|
build_command: make test_coverity
|
|
branch_pattern: coverity_scan
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/4187f8dda7a22a92b749
|
|
on_success: change # options: [always|never|change] default: always
|
|
on_failure: always # options: [always|never|change] default: always
|
|
on_start: false # default: false
|