Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): Configure CircleCI to build release and master. #1043

Merged
merged 1 commit into from Mar 20, 2019

Conversation

zetlen
Copy link
Contributor

@zetlen zetlen commented Mar 20, 2019

Description

Change CircleCI config to more clearly delineate between pull request builds and integration builds:

  • Rename build workflow to pr and master workflow to integration.
  • Change workflow filter rules so that:
    • The integration workflow runs on master, develop, and release/x.x branches (using a regular expression for the latter)
    • The build workflow excludes those same branches

Related Issue

Closes #1042.

Motivation and Context

Releasing 2.1 and future releases.

Verification

Make sure CircleCI builds for this PR behave as expected, but we won't know for sure until we merge it, due to the nature of CircleCI.

Proposed Labels for Change Type/Package

BUG for CI workflow.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have linked an issue to this PR.
  • I have indicated the change type and relevant package(s).
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All CI checks are green (linting, build/deploy, etc).
  • At least one core contributor has approved this PR.

@vercel
Copy link

vercel bot commented Mar 20, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@zetlen
Copy link
Contributor Author

zetlen commented Mar 20, 2019

OK, so far this isn't working, because the integration workflow is running on it, which isn't supposed to happen.

@zetlen
Copy link
Contributor Author

zetlen commented Mar 20, 2019

Figured that out. Typo in the YAML anchor reference.

filters:
branches:
only: master
only: *integration_branches
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does CircleCI know what integration_branches are?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a back reference to the array above on L9.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a YAML anchor reference to the YAML anchor defined above with &integration_branches.

@zetlen zetlen merged commit 2321696 into release/2.1 Mar 20, 2019
@zetlen zetlen deleted the zetlen/fix-integration-ci-builds-1042 branch March 20, 2019 17:38
@sirugh sirugh added the tooling Related to the developer tooling, including buildpack, webpack plugins, and debug UIs. label May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Related to the developer tooling, including buildpack, webpack plugins, and debug UIs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants