mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Show ignored project environments only in the verbose mode // Resolve #3641
This commit is contained in:
@ -90,6 +90,7 @@ PlatformIO Core 5
|
|||||||
|
|
||||||
- Display system-wide information using a new `pio system info <https://docs.platformio.org/page/core/userguide/system/cmd_info.html>`__ command (`issue #3521 <https://github.com/platformio/platformio-core/issues/3521>`_)
|
- Display system-wide information using a new `pio system info <https://docs.platformio.org/page/core/userguide/system/cmd_info.html>`__ command (`issue #3521 <https://github.com/platformio/platformio-core/issues/3521>`_)
|
||||||
- Remove unused data using a new `pio system prune <https://docs.platformio.org/page/core/userguide/system/cmd_prune.html>`__ command (`issue #3522 <https://github.com/platformio/platformio-core/issues/3522>`_)
|
- Remove unused data using a new `pio system prune <https://docs.platformio.org/page/core/userguide/system/cmd_prune.html>`__ command (`issue #3522 <https://github.com/platformio/platformio-core/issues/3522>`_)
|
||||||
|
- Show ignored project environments only in the verbose mode (`issue #3641 <https://github.com/platformio/platformio-core/issues/3641>`_)
|
||||||
- Do not escape compiler arguments in VSCode template on Windows.
|
- Do not escape compiler arguments in VSCode template on Windows.
|
||||||
|
|
||||||
.. _release_notes_4:
|
.. _release_notes_4:
|
||||||
|
@ -147,7 +147,7 @@ def cli(
|
|||||||
command_failed = any(r.get("succeeded") is False for r in results)
|
command_failed = any(r.get("succeeded") is False for r in results)
|
||||||
|
|
||||||
if not is_test_running and (command_failed or not silent) and len(results) > 1:
|
if not is_test_running and (command_failed or not silent) and len(results) > 1:
|
||||||
print_processing_summary(results)
|
print_processing_summary(results, verbose)
|
||||||
|
|
||||||
if command_failed:
|
if command_failed:
|
||||||
raise exception.ReturnErrorCode(1)
|
raise exception.ReturnErrorCode(1)
|
||||||
@ -220,7 +220,7 @@ def print_processing_footer(result):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def print_processing_summary(results):
|
def print_processing_summary(results, verbose=False):
|
||||||
tabular_data = []
|
tabular_data = []
|
||||||
succeeded_nums = 0
|
succeeded_nums = 0
|
||||||
failed_nums = 0
|
failed_nums = 0
|
||||||
@ -232,6 +232,8 @@ def print_processing_summary(results):
|
|||||||
failed_nums += 1
|
failed_nums += 1
|
||||||
status_str = click.style("FAILED", fg="red")
|
status_str = click.style("FAILED", fg="red")
|
||||||
elif result.get("succeeded") is None:
|
elif result.get("succeeded") is None:
|
||||||
|
if not verbose:
|
||||||
|
continue
|
||||||
status_str = "IGNORED"
|
status_str = "IGNORED"
|
||||||
else:
|
else:
|
||||||
succeeded_nums += 1
|
succeeded_nums += 1
|
||||||
|
@ -51,15 +51,19 @@ lib_deps =
|
|||||||
validate_cliresult(result)
|
validate_cliresult(result)
|
||||||
aj_pkg_data = regclient.get_package(PackageType.LIBRARY, "bblanchon", "ArduinoJson")
|
aj_pkg_data = regclient.get_package(PackageType.LIBRARY, "bblanchon", "ArduinoJson")
|
||||||
config = ProjectConfig(os.path.join(str(project_dir), "platformio.ini"))
|
config = ProjectConfig(os.path.join(str(project_dir), "platformio.ini"))
|
||||||
assert config.get("env:one", "lib_deps") == [
|
assert sorted(config.get("env:one", "lib_deps")) == sorted(
|
||||||
"bblanchon/ArduinoJson@^%s" % aj_pkg_data["version"]["name"],
|
[
|
||||||
"knolleary/PubSubClient@~2.7",
|
"bblanchon/ArduinoJson@^%s" % aj_pkg_data["version"]["name"],
|
||||||
]
|
"knolleary/PubSubClient@~2.7",
|
||||||
assert config.get("env:two", "lib_deps") == [
|
]
|
||||||
"CustomLib",
|
)
|
||||||
"bblanchon/ArduinoJson@^%s" % aj_pkg_data["version"]["name"],
|
assert sorted(config.get("env:two", "lib_deps")) == sorted(
|
||||||
"knolleary/PubSubClient@~2.7",
|
[
|
||||||
]
|
"CustomLib",
|
||||||
|
"bblanchon/ArduinoJson@^%s" % aj_pkg_data["version"]["name"],
|
||||||
|
"knolleary/PubSubClient@~2.7",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
# ensure "build" version without NPM spec
|
# ensure "build" version without NPM spec
|
||||||
result = clirunner.invoke(
|
result = clirunner.invoke(
|
||||||
@ -71,11 +75,13 @@ lib_deps =
|
|||||||
PackageType.LIBRARY, "mbed-sam-grove", "LinkedList"
|
PackageType.LIBRARY, "mbed-sam-grove", "LinkedList"
|
||||||
)
|
)
|
||||||
config = ProjectConfig(os.path.join(str(project_dir), "platformio.ini"))
|
config = ProjectConfig(os.path.join(str(project_dir), "platformio.ini"))
|
||||||
assert config.get("env:one", "lib_deps") == [
|
assert sorted(config.get("env:one", "lib_deps")) == sorted(
|
||||||
"bblanchon/ArduinoJson@^%s" % aj_pkg_data["version"]["name"],
|
[
|
||||||
"knolleary/PubSubClient@~2.7",
|
"bblanchon/ArduinoJson@^%s" % aj_pkg_data["version"]["name"],
|
||||||
"mbed-sam-grove/LinkedList@%s" % ll_pkg_data["version"]["name"],
|
"knolleary/PubSubClient@~2.7",
|
||||||
]
|
"mbed-sam-grove/LinkedList@%s" % ll_pkg_data["version"]["name"],
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
# check external package via Git repo
|
# check external package via Git repo
|
||||||
result = clirunner.invoke(
|
result = clirunner.invoke(
|
||||||
|
Reference in New Issue
Block a user