Skip to content

Commit

Permalink
Use cppcheck to scan the C++ code
Browse files Browse the repository at this point in the history
Fix #379
  • Loading branch information
Minggang Wang committed Jul 19, 2018
1 parent 7549cfe commit 87e228a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ before_install:
- sudo docker build -t rcldocker .

script:
- sudo docker run -v $(pwd):/root/rclnodejs --rm rcldocker bash -i -c 'cd /root/rclnodejs && ./scripts/build.sh && npm test'
- sudo docker run -v $(pwd):/root/rclnodejs --rm rcldocker bash -i -c 'cd /root/rclnodejs && cppcheck --enable=all src/*.cpp src/*.hpp && ./scripts/build.sh && npm test'
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN apt update && apt install -y \
python3-setuptools \
python3-yaml \
python3-colcon-common-extensions \
cmake
cmake \
cppcheck

RUN pip3 install -U setuptools

Expand Down

0 comments on commit 87e228a

Please sign in to comment.