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 #40 from roleroz/fs
Having FS flashing as part of programming the microcontroller is slow, and ends up trashing the flash memory without need. As FS flashing is something that happens way less often than programming a microcontroller, now you can use platformio_fs() to flash you FS bazel build ... and bazel test ... all pass joso@pop-os:~/git/platformio_rules$ bazel clean --expunge INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes. joso@pop-os:~/git/platformio_rules$ bazel build ... Starting local Bazel server and connecting to it... DEBUG: Rule 'io_bazel_stardoc' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "50cb91505b14b1dd07e32eb6145c5767b7a629c7" and dropping ["tag"] DEBUG: Repository io_bazel_stardoc instantiated at: /home/joso/git/platformio_rules/WORKSPACE:25:30: in <toplevel> /home/joso/git/platformio_rules/bazel/deps.bzl:10:19: in platformio_rules_dependencies Repository rule git_repository defined at: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/external/bazel_tools/tools/build_defs/repo/git.bzl:181:33: in <toplevel> INFO: Analyzed 29 targets (76 packages loaded, 3906 targets configured). INFO: Found 29 targets... INFO: From Action tests/arduino/lib/Arduino_impl/Arduino_impl.h: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/execroot/__main__ INFO: From Action tests/arduino/lib/Arduino_interface/Arduino_interface.h: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/execroot/__main__ INFO: From Action tests/binary_counter/led_display/lib/Led_display/Led_display.h: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/execroot/__main__ INFO: From Action tests/binary_counter/convert/lib/Convert/Convert.h: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/execroot/__main__ INFO: From Action tests/binary_counter/button_presses/lib/Button_presses/Button_presses.h: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/execroot/__main__ INFO: From Action tests/rgb_blink/lib/rgb_led/rgb_led.h: /home/joso/.cache/bazel/_bazel_joso/e97f26a8b58df374fb064ff4a095894c/execroot/__main__ INFO: From Action tests/rgb_blink/rgb_blink_workdir/.pio/build/esp32-s3-devkitc-1/firmware.elf: Library Manager: Installing adafruit/Adafruit NeoPixel#1.11.0 Unpacking Library Manager: Adafruit [email protected] has been installed! INFO: Elapsed time: 27.781s, Critical Path: 17.99s INFO: 132 processes: 65 internal, 67 local. INFO: Build completed successfully, 132 total actions joso@pop-os:~/git/platformio_rules$ bazel test ... INFO: Analyzed 29 targets (1 packages loaded, 504 targets configured). INFO: Found 25 targets and 4 test targets... INFO: Elapsed time: 1.567s, Critical Path: 1.31s INFO: 5 processes: 5 local. INFO: Build completed successfully, 5 total actions //:requirements_test PASSED in 1.2s //tests/binary_counter/button_presses:button_presses_test PASSED in 0.0s //tests/binary_counter/convert:convert_test PASSED in 0.0s //tests/binary_counter/led_display:led_display_test PASSED in 0.0s Executed 4 out of 4 tests: 4 tests pass. There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
- Loading branch information