Skip to content

Commit da8ede1

Browse files
committed
Merge pull request nasa#428 from avan989/new_travis
issue nasa#427, adding travis.yml for cppcheck on flight
2 parents 7251cbc + 6a77b21 commit da8ede1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
dist: bionic
2+
sudo: required
3+
language:
4+
- c
5+
compiler:
6+
- gcc
7+
addons:
8+
apt:
9+
sources:
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
- cmake
13+
14+
before_install:
15+
- sudo apt-get install cppcheck
16+
17+
script:
18+
# Check versions
19+
- cppcheck --version
20+
21+
#cppcheck flight software cfe/fsw/cfe-core/src
22+
- cppcheck --force --inline-suppr --std=c99 --language=c --error-exitcode=1 --enable=warning,performance,portability,style --suppress=variableScope --inconclusive fsw/cfe-core/src 2>cppcheck_flight_cfe.txt
23+
- |
24+
if [[ -s cppcheck_flight_cfe.txt ]]; then
25+
echo "You must fix cppcheck errors before submitting a pull request"
26+
echo ""
27+
cat cppcheck_flight_cfe.txt
28+
exit -1
29+
fi
30+

0 commit comments

Comments
 (0)