-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from RobertGawron/feature/esp_firmware
Feature/esp firmware
- Loading branch information
Showing
97 changed files
with
5,939 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
strictness: veryhigh | ||
|
||
pydocstyle: | ||
disable: | ||
- D212 | ||
- D211 | ||
- D205 | ||
- D400 | ||
- D415 | ||
- D202 | ||
- D201 | ||
options: | ||
max-line-length: 120 | ||
|
||
pycodestyle: | ||
options: | ||
max-line-length: 105 | ||
|
||
pylint: | ||
options: | ||
max-line-length: 105 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-*/Middlewares/* | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/Arduino.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/Client.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/ESP8266WiFi.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/HardwareSerial.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/Print.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/Printable.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/PubSubClient.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/stdlib_noniso.h | ||
-*/Simulation/FirmwarePCSimulator/ESP8266/Mocks/Inc/WString.h |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Activate the virtual environment | ||
source /workspace/venv/bin/activate | ||
|
||
# Set up directories for artifacts | ||
OUTPUT_DIR="/workspace/build/BuildArtifacts/PythonStaticAnalysis" | ||
mkdir -p "$OUTPUT_DIR" | ||
|
||
# Define input and output file paths | ||
SYSTEM_JSON="$OUTPUT_DIR/SystemTests.json" | ||
SYSTEM_HTML="$OUTPUT_DIR/SystemTests.html" | ||
SIMULATOR_JSON="$OUTPUT_DIR/FirmwarePCSimulator.json" | ||
SIMULATOR_HTML="$OUTPUT_DIR/FirmwarePCSimulator.html" | ||
|
||
# Initialize exit code tracker | ||
EXIT_CODE=0 | ||
|
||
# Run Prospector analysis | ||
prospector --profile /workspace/DevOps/Scripts/.prospector.yaml --strictness veryhigh --doc-warnings --output-format xunit /workspace/Test/System/ > "$SYSTEM_JSON" || EXIT_CODE=1 | ||
prospector --profile /workspace/DevOps/Scripts/.prospector.yaml --strictness veryhigh --doc-warnings --output-format xunit /workspace/Simulation/FirmwarePCSimulator/ > "$SIMULATOR_JSON" || EXIT_CODE=1 | ||
|
||
# vjunit is broken in original version, so we need to fix it | ||
find /workspace/venv/ -type f -name "vjunit.py" -exec sed -i 's/children = testcase\.getchildren()/children = list(testcase)/g' {} + | ||
|
||
# Convert JSON reports to HTML using prospector-html | ||
vjunit -f "$SYSTEM_JSON" -o "$SYSTEM_HTML" || echo "Warning: HTML conversion failed for SystemTests" | ||
vjunit -f "$SIMULATOR_JSON" -o "$SIMULATOR_HTML" || echo "Warning: HTML conversion failed for FirmwarePCSimulator" | ||
|
||
# Expand all tabs in the HTML reports | ||
sed -i "/\$('.ui.accordion').accordion();/c\\ | ||
\$('.ui.accordion').accordion();\\ | ||
\$('.ui.accordion .title').addClass('active');\\ | ||
\$('.ui.accordion .content').addClass('active');" "$SYSTEM_HTML" | ||
|
||
sed -i "/\$('.ui.accordion').accordion();/c\\ | ||
\$('.ui.accordion').accordion();\\ | ||
\$('.ui.accordion .title').addClass('active');\\ | ||
\$('.ui.accordion .content').addClass('active');" "$SIMULATOR_HTML" | ||
|
||
# Exit with the appropriate code | ||
exit $EXIT_CODE |
Oops, something went wrong.