mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Switch to the new "pio pkg install" command
This commit is contained in:
@ -33,9 +33,7 @@ import click
|
|||||||
)
|
)
|
||||||
def main(desktop, ignore, ownernames):
|
def main(desktop, ignore, ownernames):
|
||||||
platforms = json.loads(
|
platforms = json.loads(
|
||||||
subprocess.check_output(
|
subprocess.check_output(["pio", "platform", "search", "--json-output"]).decode()
|
||||||
["platformio", "platform", "search", "--json-output"]
|
|
||||||
).decode()
|
|
||||||
)
|
)
|
||||||
ignore = [n.strip() for n in (ignore or "").split(",") if n.strip()]
|
ignore = [n.strip() for n in (ignore or "").split(",") if n.strip()]
|
||||||
ownernames = [n.strip() for n in (ownernames or "").split(",") if n.strip()]
|
ownernames = [n.strip() for n in (ownernames or "").split(",") if n.strip()]
|
||||||
@ -47,7 +45,16 @@ def main(desktop, ignore, ownernames):
|
|||||||
]
|
]
|
||||||
if any(skip):
|
if any(skip):
|
||||||
continue
|
continue
|
||||||
subprocess.check_call(["platformio", "platform", "install", platform["name"]])
|
subprocess.check_call(
|
||||||
|
[
|
||||||
|
"pio",
|
||||||
|
"pkg",
|
||||||
|
"install",
|
||||||
|
"--global",
|
||||||
|
"--platform",
|
||||||
|
"{ownername}/{name}".format(**platform),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
4
tox.ini
4
tox.ini
@ -40,12 +40,12 @@ commands =
|
|||||||
[testenv:testcore]
|
[testenv:testcore]
|
||||||
commands =
|
commands =
|
||||||
{envpython} --version
|
{envpython} --version
|
||||||
py.test -v --basetemp="{envtmpdir}" -k "not skip_ci" tests --ignore tests/test_examples.py
|
py.test -v -k "not skip_ci" tests --ignore tests/test_examples.py
|
||||||
|
|
||||||
[testenv:testexamples]
|
[testenv:testexamples]
|
||||||
commands =
|
commands =
|
||||||
{envpython} scripts/install_devplatforms.py
|
{envpython} scripts/install_devplatforms.py
|
||||||
py.test -v --basetemp="{envtmpdir}" tests/test_examples.py
|
py.test -v tests/test_examples.py
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
; basepython = ~/.pyenv/versions/3.6.12/bin/python
|
; basepython = ~/.pyenv/versions/3.6.12/bin/python
|
||||||
|
Reference in New Issue
Block a user