The implementation of the "ci" command. In "Fast" mode, this compiles the build python, and the simulator for the build machine's architecture; and runs the test suite with `--fast-ci` configuration. In "Slow" mode, it compiles the build python, plus all candidate architectures
(context: argparse.Namespace)
| 865 | |
| 866 | |
| 867 | def ci(context: argparse.Namespace) -> None: |
| 868 | """The implementation of the "ci" command. |
| 869 | |
| 870 | In "Fast" mode, this compiles the build python, and the simulator for the |
| 871 | build machine's architecture; and runs the test suite with `--fast-ci` |
| 872 | configuration. |
| 873 | |
| 874 | In "Slow" mode, it compiles the build python, plus all candidate |
| 875 | architectures (both device and simulator); then runs the test suite with |
| 876 | `--slow-ci` configuration. |
| 877 | """ |
| 878 | clean(context, "all") |
| 879 | if context.ci_mode == "slow": |
| 880 | # In slow mode, build and test the full XCframework |
| 881 | build(context, host="all") |
| 882 | test(context, host="all") |
| 883 | else: |
| 884 | # In fast mode, just build the simulator platform. |
| 885 | sim_host = apple_sim_host(context.platform) |
| 886 | build(context, host="build") |
| 887 | build(context, host=sim_host) |
| 888 | test(context, host=sim_host) |
| 889 | |
| 890 | |
| 891 | def parse_args() -> argparse.Namespace: |
nothing calls this directly
no test coverage detected