From 2c52aeaf44fa99e13e9e347eb897a577039522f8 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Tue, 31 Dec 2019 12:21:59 -0800 Subject: [PATCH] Add -Wall to CI process --- tests/common.sh | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/tests/common.sh b/tests/common.sh index e53f051..c54e675 100755 --- a/tests/common.sh +++ b/tests/common.sh @@ -100,21 +100,26 @@ function install_ide() cd esp8266com git clone https://github.com/esp8266/Arduino esp8266 pushd esp8266/tools + # Set custom warnings for all builds (i.e. could add -Wextra at some point) + echo "compiler.c.extra_flags=-Wall -Wextra -Werror $debug_flags" > ../platform.local.txt + echo "compiler.cpp.extra_flags=-Wall -Wextra -Werror $debug_flags" >> ../platform.local.txt + echo -e "\n----platform.local.txt----" + cat ../platform.local.txt git submodule init git submodule update python3 get.py export PATH="$ide_path:$ide_path/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin:$PATH" popd - cd .. - mkdir espressif - cd espressif - git clone https://github.com/espressif/arduino-esp32 esp32 - pushd esp32/tools - git submodule init - git submodule update - python3 get.py - export PATH="$ide_path:$ide_path/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin:$PATH" - popd +# cd .. +# mkdir espressif +# cd espressif +# git clone https://github.com/espressif/arduino-esp32 esp32 +# pushd esp32/tools +# git submodule init +# git submodule update +# python3 get.py +# export PATH="$ide_path:$ide_path/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin:$PATH" +# popd } function run_host_tests()