Esempio n. 1
0
    def run_project_cmd(self, args, loader, manifest):
        platforms = [
            HostType("linux", "ubuntu", "18"),
            HostType("darwin", None, None),
            HostType("windows", None, None),
        ]

        with open(args.output_file, "w") as out:
            # Deliberate line break here because the @ and the generated
            # symbols are meaningful to our internal tooling when they
            # appear in a single token
            out.write("# This file was @")
            out.write("generated by getdeps.py\n")
            out.write("""
name: CI

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
""")
            for p in platforms:
                build_opts = setup_build_options(args, p)
                self.write_job_for_platform(out, args, build_opts)
Esempio n. 2
0
    def run_project_cmd(self, args, loader, manifest):
        platforms = [
            HostType("linux", "ubuntu", "18"),
            HostType("darwin", None, None),
            HostType("windows", None, None),
        ]

        for p in platforms:
            self.write_job_for_platform(p, args)
Esempio n. 3
0
    def run_project_cmd(self, args, loader, manifest):
        platforms = [
            HostType("linux", "ubuntu", "18"),
            HostType("darwin", None, None),
            HostType("windows", None, None),
        ]

        for p in platforms:
            if args.os_types and p.ostype not in args.os_types:
                continue
            self.write_job_for_platform(p, args)
Esempio n. 4
0
 def run(self, args):
     host = HostType()
     print("%s" % host.as_tuple_string())
     return 0
Esempio n. 5
0
 def run(self, args):
     host = HostType()
     print("%s" % host.as_tuple_string())
     return 0