Static code analysis activated in PlatformIO

This commit is contained in:
Martin Jaeger
2019-11-11 18:35:21 +01:00
parent 47954166be
commit ad99d0a361
2 changed files with 9 additions and 12 deletions
+3 -12
View File
@@ -1,6 +1,4 @@
language: python
python:
- "2.7"
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
@@ -15,13 +13,6 @@ install:
- pip install -U platformio
- platformio update
#
# Libraries from PlatformIO Library Registry:
#
# https://platformio.org/lib/show/4ee/
# https://platformio.org/lib/show/c23/
# - platformio lib -g install 4ee c23
addons:
apt:
packages:
@@ -29,9 +20,9 @@ addons:
script:
- cp src/config.h_template src/config.h
# - platformio ci --lib="lib/Adafruit_GFX" --lib="lib/ThingSet" --project-conf=platformio.ini -e libresolar_0_10,libresolar_0_05
- platformio run -e mppt-2420-lc-v0.10 -e mppt-1210-hus-v0.2 -e mppt-1210-hus-v0.4 -e pwm-2420-lus-v0.2
- platformio run -e mppt-2420-lc-v0.10 -e mppt-1210-hus-v0.7 -e pwm-2420-lus-v0.3
- platformio test -e unit-test-native
- platformio check -e mppt-1210-hus-v0.7 -e pwm-2420-lus-v0.3
- doxygen Doxyfile
deploy:
@@ -41,4 +32,4 @@ deploy:
github_token: $GH_REPO_TOKEN
on:
repo: LibreSolar/charge-controller-firmware
branch: master
branch: master
+6
View File
@@ -65,6 +65,12 @@ lib_deps =
lib_ignore = USB, mbed-USBDevice, mbed-mbedtls
check_tool = cppcheck, clangtidy
check_flags =
cppcheck: --enable=warning,style,performance,portability,information,missingInclude
# --addon=addons/misra.py --addon=addons/cert.py
clangtidy: --checks=-*,cert-*,clang-analyzer-*,bugprone-*,misc-*,performance-*,readability-*,-readability-magic-numbers,-cert-err58-cpp
#### BOARD DEFINITIONS ########################################################
# https://github.com/LibreSolar/MPPT-2420-LC/tree/5bc39183c8