Skip to content

Commit

Permalink
Fix #119, Add CI cppcheck on core code
Browse files Browse the repository at this point in the history
  • Loading branch information
avan989 authored and skliper committed Dec 30, 2019
1 parent 9334835 commit c6cd4eb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
dist: bionic
sudo: required
language:
- c
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake

before_install:
- sudo apt-get install cppcheck

script:
# Check versions
- cppcheck --version

#cppcheck flight software psp/fsw
- cppcheck --force --inline-suppr --std=c99 --language=c --error-exitcode=1 --enable=warning,performance,portability,style --suppress=variableScope --inconclusive fsw 2>cppcheck_flight_psp.txt
- |
if [[ -s cppcheck_flight_psp.txt ]]; then
echo "You must fix cppcheck errors before submitting a pull request"
echo ""
cat cppcheck_flight_psp.txt
exit -1
fi

0 comments on commit c6cd4eb

Please sign in to comment.