mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-28 17:19:31 +01:00
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
"""Run the synthetic nightly packaging suites together; no app build or signing.
|
|
|
|
`nightly-release-tests.py` is dylanmtaylor's contract suite for the enabled callers and the
|
|
installed policy (`nightly.yml`, `nightly-sign.yml`, `.github/nightly-signing-policy.json`); it
|
|
runs here too, so one command covers everything the PR adds.
|
|
"""
|
|
import importlib.util
|
|
from pathlib import Path
|
|
import unittest
|
|
|
|
|
|
def main() -> int:
|
|
here = Path(__file__).resolve().parent
|
|
suite = unittest.TestSuite()
|
|
for name, relative in (
|
|
("anicraft_archive_suite", "nightly-archive-tests.py"),
|
|
("anicraft_launch_suite", "nightly-launch-tests.py"),
|
|
("anicraft_release_suite", "nightly-release-tests.py"),
|
|
("anicraft_plist_suite", "macos/nightly_plist_tests.py"),
|
|
("anicraft_mac_sign_suite", "macos/nightly_sign_tests.py"),
|
|
):
|
|
spec = importlib.util.spec_from_file_location(name, here / relative)
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
|
|
return 0 if unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() else 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|