forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 1
EDK II Continuous Integration Administration
Michael D Kinney edited this page Nov 26, 2019
·
1 revision
-
Azure Pipelines Configuration Steps Part I
- Goto https://dev.azure.com/tianocore
- Create new project in TianoCore org called
edk2-ci
- Disable Boards
- Disable Repositories
-
GitHub Configuration Steps Part I
- Goto https://github.com/tianocore
- Select Settings
- Select Installed GitHub Apps
- Select Azure Pipelines -> Configure
- Enable
tianocore/edk2
repository - Redirects to Azure Pipelines login. Select TianoCore org and
edk2-ci
project to complete link and authentication between Azure Pipelines TianoCore organization and GitHub TianoCore organization.
- Enable
-
Azure Pipelines Configuration Steps Part II
- Goto https://dev.azure.com/tianocore/edk2-ci/_build
- Create New Pipeline called
Ubuntu GCC5 CI
for post commit checks- YAML: Select file https://github.com/tianocore/edk2/blob/master/.azurepipelines/Ubuntu-GCC5.yml
- Name: Set to
Ubuntu GCC5 CI
- Triggers:
- CI - No changes
- PR - Override + Disable
- Variables: No changes
- Save pipeline changes
- Run pipeline and verify all checks pass
- Create New Pipeline called
Windows VS2019 CI
for post commit checks- YAML: Select file https://github.com/tianocore/edk2/blob/master/.azurepipelines/Windows-VS2019.yml
- Name:
Windows VS2019 CI
- Triggers
- CI - No changes
- PR - Override + Disable
- Variables: No changes
- Save pipeline changes
- Run pipeline and verify all checks pass
- Create New Pipeline called
Ubuntu GCC5 PR
for pre commit checks- YAML: Select file https://github.com/tianocore/edk2/blob/master/.azurepipelines/Ubuntu-GCC5.yml
- Name:
Ubuntu GCC5 PR
- Triggers
- CI - Override + Disable
- PR - No changes
- Variables: No changes
- Save pipeline changes
- Run pipeline. Pipeline will fail because it requires a GitHub PR. Must run for pipeline name to show up in GitHub Branch Protection Rules.
- Create New Pipeline called
Windows VS2019 PR
for pre commit checks- YAML: Select file https://github.com/tianocore/edk2/blob/master/.azurepipelines/Windows-VS2019.yml
- Name:
Windows VS2019 PR
- Triggers
- CI - Override + Disable
- PR - No changes
- Variables: No changes
- Save pipeline changes
- Run pipeline. Pipeline will fail because it requires a GitHub PR. Must run for pipeline name to show up in GitHub Branch Protection Rules.
- Add PatchCheck pipeline for pre commit checks
- YAML: Select file https://github.com/tianocore/edk2/blob/master/.azurepipelines/Ubuntu-PatchCheck.yml
- Name:
tianocore.PatchCheck
- Triggers
- CI - Override + Disable
- PR - No changes
- Variables: No changes
- Save pipeline changes
- Run pipeline. Pipeline will fail because it requires a GitHub PR. Must run for pipeline name to show up in GitHub Branch Protection Rules.
-
GitHub Configuration Steps Part II
- Goto https://github.com/tianocore/edk2
- Select Settings
- Select Branches
- Select Branch Protection Rules
- Select
master
-> Edit- Enable
Require status checks to pass before merging
- Enable
Require branches to be up to date before merging
- Enable
Windows VS2019 PR
check - Enable
Ubuntu GCC5 PR
check - Enable
tianocore.PatchCheck
check
- Enable
- Goto https://github.com/tianocore
- Select Settings
- Select Installed GitHub Apps
- Select Mergify -> Configure
- Enable tianocore/edk2 repo
-
Update Status Badge Links
- Goto https://dev.azure.com/tianocore/edk2-ci/_build
- Select
Windows VS2019 CI
- Use '...' menu in upper right and select Status badge
- Copy Sample markdown
- Update links in Build Status section of https://github.com/tianocore/edk2/blob/master/Readme.md
- Select
Ubuntu GCC5 CI
- Use '...' menu in upper right and select Status badge
- Copy Sample markdown
- Update links in Build Status section of https://github.com/tianocore/edk2/blob/master/Readme.md
- Submit changes to Readme.md for EDK II code review and submit GitHub PR to test personal build and Mergify commit once review passes.