@@ -764,6 +764,7 @@ function build_this_sketch()
764
764
765
765
# Parse through the output from the sketch verification to count warnings and determine the compile size
766
766
local warningCount=0
767
+ local boardIssueCount=0
767
768
while read -r outputFileLine; do
768
769
# Determine program storage memory usage
769
770
local programStorageRegex=" Sketch uses ([0-9,]+) *"
@@ -787,6 +788,7 @@ function build_this_sketch()
787
788
local bootloaderMissingRegex=" Bootloader file specified but missing: "
788
789
if [[ " $outputFileLine " =~ $bootloaderMissingRegex ]] > /dev/null; then
789
790
local boardIssue=" missing bootloader"
791
+ boardIssueCount=$(( boardIssueCount + 1 ))
790
792
fi
791
793
done < " $ARDUINO_CI_SCRIPT_VERIFICATION_OUTPUT_FILENAME "
792
794
@@ -803,7 +805,7 @@ function build_this_sketch()
803
805
fi
804
806
805
807
# Add the build data to the report file
806
- echo " $( date -u " +%Y-%m-%d %H:%M:%S" ) " $' \t ' " $TRAVIS_BUILD_NUMBER " $' \t ' " $TRAVIS_JOB_NUMBER " $' \t ' " https://travis-ci.org/${TRAVIS_REPO_SLUG} /jobs/${TRAVIS_JOB_ID} " $' \t ' " $TRAVIS_EVENT_TYPE " $' \t ' " $TRAVIS_ALLOW_FAILURE " $' \t ' " $TRAVIS_PULL_REQUEST " $' \t ' " $TRAVIS_BRANCH " $' \t ' " $TRAVIS_COMMIT " $' \t ' " $TRAVIS_COMMIT_RANGE " $' \t ' " ${TRAVIS_COMMIT_MESSAGE%% $' \n ' * } " $' \t ' " $sketchName " $' \t ' " $boardID " $' \t ' " $IDEversion " $' \t ' " $programStorage " $' \t ' " $dynamicMemory " $' \t ' " $warningCount " $' \t ' " $allowFail " $' \t ' " $arduinoExitCode " $' \t ' " $boardIssue " $' \r ' >> " $ARDUINO_CI_SCRIPT_REPORT_FILE_PATH "
808
+ echo " $( date -u " +%Y-%m-%d %H:%M:%S" ) " $' \t ' " $TRAVIS_BUILD_NUMBER " $' \t ' " $TRAVIS_JOB_NUMBER " $' \t ' " https://travis-ci.org/${TRAVIS_REPO_SLUG} /jobs/${TRAVIS_JOB_ID} " $' \t ' " $TRAVIS_EVENT_TYPE " $' \t ' " $TRAVIS_ALLOW_FAILURE " $' \t ' " $TRAVIS_PULL_REQUEST " $' \t ' " $TRAVIS_BRANCH " $' \t ' " $TRAVIS_COMMIT " $' \t ' " $TRAVIS_COMMIT_RANGE " $' \t ' " ${TRAVIS_COMMIT_MESSAGE%% $' \n ' * } " $' \t ' " $sketchName " $' \t ' " $boardID " $' \t ' " $IDEversion " $' \t ' " $programStorage " $' \t ' " $dynamicMemory " $' \t ' " $warningCount " $' \t ' " $allowFail " $' \t ' " $arduinoExitCode " $' \t ' " $boardIssueCount " $' \t ' " $ boardIssue" $' \r ' >> " $ARDUINO_CI_SCRIPT_REPORT_FILE_PATH "
807
809
808
810
# End the folded section of the Travis CI build log
809
811
echo -e " travis_fold:end:build_sketch"
@@ -979,7 +981,7 @@ create_folder "$ARDUINO_CI_SCRIPT_REPORT_FOLDER"
979
981
980
982
981
983
# Add column names to report
982
- echo " Build Timestamp (UTC)" $' \t ' " Build" $' \t ' " Job" $' \t ' " Job URL" $' \t ' " Build Trigger" $' \t ' " Allow Job Failure" $' \t ' " PR#" $' \t ' " Branch" $' \t ' " Commit" $' \t ' " Commit Range" $' \t ' " Commit Message" $' \t ' " Sketch Filename" $' \t ' " Board ID" $' \t ' " IDE Version" $' \t ' " Program Storage (bytes)" $' \t ' " Dynamic Memory (bytes)" $' \t ' " # Warnings" $' \t ' " Allow Failure" $' \t ' " Exit Code" $' \t ' " Board Issue" $' \r ' > " $ARDUINO_CI_SCRIPT_REPORT_FILE_PATH "
984
+ echo " Build Timestamp (UTC)" $' \t ' " Build" $' \t ' " Job" $' \t ' " Job URL" $' \t ' " Build Trigger" $' \t ' " Allow Job Failure" $' \t ' " PR#" $' \t ' " Branch" $' \t ' " Commit" $' \t ' " Commit Range" $' \t ' " Commit Message" $' \t ' " Sketch Filename" $' \t ' " Board ID" $' \t ' " IDE Version" $' \t ' " Program Storage (bytes)" $' \t ' " Dynamic Memory (bytes)" $' \t ' " # Warnings" $' \t ' " Allow Failure" $' \t ' " Exit Code" $' \t ' " # Board Issues " $' \t ' " Board Issue" $' \r ' > " $ARDUINO_CI_SCRIPT_REPORT_FILE_PATH "
983
985
984
986
985
987
# Start the virtual display required by the Arduino IDE CLI: https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc#bugs
0 commit comments