(
self,
build_dir: Path,
environment: str | None,
timeout: float = 1800,
)
| 95 | return "platformio" |
| 96 | |
| 97 | def install_packages( |
| 98 | self, |
| 99 | build_dir: Path, |
| 100 | environment: str | None, |
| 101 | timeout: float = 1800, |
| 102 | ) -> bool: |
| 103 | from ci.compiler.build_utils import get_utf8_env |
| 104 | |
| 105 | cmd: list[str] = ["pio", "pkg", "install", "--project-dir", str(build_dir)] |
| 106 | if environment: |
| 107 | cmd.extend(["--environment", environment]) |
| 108 | |
| 109 | print("=" * 60) |
| 110 | print("PACKAGE INSTALLATION (PlatformIO)") |
| 111 | print("=" * 60) |
| 112 | result = subprocess.run(cmd, env=get_utf8_env()) |
| 113 | if result.returncode != 0: |
| 114 | print("\n... Package installation failed") |
| 115 | return False |
| 116 | print("... Package installation completed\n") |
| 117 | return True |
| 118 | |
| 119 | def deploy( |
| 120 | self, |
nothing calls this directly
no test coverage detected