diff --git a/.travis.yml b/.travis.yml index 8a12eec..8a6a62a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + branch: master diff --git a/platformio.ini b/platformio.ini index 1224df3..84c3b50 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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