File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ language: generic
2
2
env :
3
3
global :
4
4
- CLI_VERSION=latest
5
+ - EXTRA_COMPILER_WARNING_FLAGS="-Wpedantic -Werror"
5
6
matrix :
6
7
include :
7
8
- env :
@@ -60,8 +61,8 @@ before_install:
60
61
- arduino-cli lib install WiFi101
61
62
- arduino-cli lib install WiFiNINA
62
63
- arduino-cli lib install Ethernet
63
- - buildExampleSketch() { arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/$1; }
64
- - buildExampleUtilitySketch() { arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/utility/$1; }
64
+ - buildExampleSketch() { arduino-cli compile --warnings all --build-properties compiler.c.extra_flags="${EXTRA_COMPILER_WARNING_FLAGS}" --build-properties compiler.cpp.extra_flags="${EXTRA_COMPILER_WARNING_FLAGS}" --build-properties compiler.S.extra_flags="${EXTRA_COMPILER_WARNING_FLAGS}" -- fqbn $BOARD $PWD/examples/$1; }
65
+ - buildExampleUtilitySketch() { arduino-cli compile --warnings all --build-properties compiler.c.extra_flags="${EXTRA_COMPILER_WARNING_FLAGS}" --build-properties compiler.cpp.extra_flags="${EXTRA_COMPILER_WARNING_FLAGS}" --build-properties compiler.S.extra_flags="${EXTRA_COMPILER_WARNING_FLAGS}" -- fqbn $BOARD $PWD/examples/utility/$1; }
65
66
install :
66
67
- mkdir -p $HOME/Arduino/libraries
67
68
- ln -s $PWD $HOME/Arduino/libraries/.
You can’t perform that action at this time.
0 commit comments