示例#1
0
            "--ignore-missing-imports",
        ).on_integration_image(SupportedPython.V3_7).build(),
    ]

    for m in DAGSTER_PACKAGES_WITH_CUSTOM_TESTS:
        steps += m.get_tox_build_steps()

    steps += extra_library_tests()

    steps += pipenv_smoke_tests()
    steps += version_equality_checks()
    steps += releasability_tests()
    steps += next_docs_build_tests()

    if DO_COVERAGE:
        steps += [wait_step(), coverage_step()]

    print(
        yaml.dump(
            {
                "env": {
                    "CI_NAME": "buildkite",
                    "CI_BUILD_NUMBER": "$BUILDKITE_BUILD_NUMBER",
                    "CI_BUILD_URL": "$BUILDKITE_BUILD_URL",
                    "CI_BRANCH": "$BUILDKITE_BRANCH",
                    "CI_PULL_REQUEST": "$BUILDKITE_PULL_REQUEST",
                },
                "steps": steps,
            },
            default_flow_style=False,
        ))
示例#2
0
            "export IMAGE_VERSION=$$(buildkite-agent meta-data get \"integration-image-version\")",
            "pip install awscli",
            "aws ecr get-login --no-include-email --region us-west-1 | sh",
            "cd /workdir/.buildkite/images/",
            "make VERSION=\"$$IMAGE_VERSION\" build-integration-{python_version}"
            .format(python_version=''.join(python_version.split('.')[:2])),
            "make VERSION=\"$$IMAGE_VERSION\" push-integration-{python_version}"
            .format(python_version=python_version),
        ).on_integration_image(
            SupportedPython.V3_7,
            [
                'AWS_ACCOUNT_ID',
                'AWS_ACCESS_KEY_ID',
                'AWS_SECRET_ACCESS_KEY',
                'BUILDKITE_SECRETS_BUCKET',
            ],
        ).on_queue(BuildkiteQueue.DOCKER).with_timeout(30).build()
        for python_version in SupportedPythons + [SupportedPython.V3_8]
    ]


if __name__ == "__main__":
    print(
        yaml.dump(
            {
                "steps": [image_input_step(), wait_step()] +
                publish_integration_images()
            },
            default_flow_style=False,
        ))