Commit ff373f51 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Only run Kontrol tests on PRs or develop (#9199)

Adds a check to prevent long-running Kontrol tests from running in the merge queue. They will still run on PRs and on `develop`. This helps get around a limitation in check-changed that causes all tests to be run on PRs in the merge queue.
parent a04b26b2
...@@ -1328,6 +1328,16 @@ jobs: ...@@ -1328,6 +1328,16 @@ jobs:
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
- run:
# This is a workaround for how check-changed doesn't work in
# the merge queue. By running this check the kontrol tests will
# run on PR builds and on develop, but not the merge queue.
name: Ensure PR/develop
command: |
if [ -z "$CIRCLE_PULL_REQUEST" ] && [ "$CIRCLE_BRANCH" != "develop" ]; then
echo "Not a PR or develop branch, skipping kontrol tests"
circleci step halt
fi
- run: - run:
name: Checkout Submodule name: Checkout Submodule
command: make submodules command: make submodules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment