-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: rework pipeline: short/extended based on labels (#11324)
* CI: reduce VM resources requests to improve scheduling * CI: Reduce default jobs; add labels(ci-full/extended) to run more test * CI: use jobs dependencies instead of stages * precommit one-job * CI: Use Kubevirt VM to run Molecule and Vagrant jobs
- Loading branch information
Showing
30 changed files
with
419 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
--- | ||
generate-pre-commit: | ||
image: 'mikefarah/yq@sha256:bcb889a1f9bdb0613c8a054542d02360c2b1b35521041be3e1bd8fbd0534d411' | ||
stage: build | ||
before_script: [] | ||
pre-commit: | ||
stage: test | ||
tags: | ||
- ffci | ||
image: 'ghcr.io/pre-commit-ci/runner-image@sha256:aaf2c7b38b22286f2d381c11673bec571c28f61dd086d11b43a1c9444a813cef' | ||
variables: | ||
PRE_COMMIT_HOME: /pre-commit-cache | ||
script: | ||
- > | ||
yq -r < .pre-commit-config.yaml '.repos[].hooks[].id' | | ||
sed 's/^/ - /' | | ||
cat .gitlab-ci/pre-commit-dynamic-stub.yml - > pre-commit-generated.yml | ||
artifacts: | ||
- pre-commit run --all-files | ||
cache: | ||
key: pre-commit-all | ||
paths: | ||
- pre-commit-generated.yml | ||
|
||
run-pre-commit: | ||
stage: unit-tests | ||
trigger: | ||
include: | ||
- artifact: pre-commit-generated.yml | ||
job: generate-pre-commit | ||
strategy: depend | ||
- /pre-commit-cache | ||
needs: [] | ||
|
||
vagrant-validate: | ||
extends: .job | ||
stage: unit-tests | ||
tags: [light] | ||
stage: test | ||
tags: [ffci] | ||
variables: | ||
VAGRANT_VERSION: 2.3.7 | ||
script: | ||
- ./tests/scripts/vagrant-validate.sh | ||
- ./tests/scripts/vagrant-validate.sh | ||
except: ['triggers', 'master'] | ||
|
||
|
||
# TODO: convert to pre-commit hook | ||
check-galaxy-version: | ||
stage: unit-tests | ||
tags: [light] | ||
needs: [] | ||
stage: test | ||
tags: [ffci] | ||
image: python:3 | ||
script: | ||
- tests/scripts/check_galaxy_version.sh | ||
- tests/scripts/check_galaxy_version.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.