2019-04-17 23:32:03 +08:00
|
|
|
---
|
2024-05-22 21:53:06 +08:00
|
|
|
generate-pre-commit:
|
|
|
|
image: 'mikefarah/yq@sha256:bcb889a1f9bdb0613c8a054542d02360c2b1b35521041be3e1bd8fbd0534d411'
|
|
|
|
stage: build
|
|
|
|
before_script: []
|
|
|
|
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:
|
|
|
|
paths:
|
|
|
|
- pre-commit-generated.yml
|
|
|
|
|
|
|
|
run-pre-commit:
|
|
|
|
stage: unit-tests
|
|
|
|
trigger:
|
|
|
|
include:
|
|
|
|
- artifact: pre-commit-generated.yml
|
|
|
|
job: generate-pre-commit
|
|
|
|
strategy: depend
|
|
|
|
|
2019-05-03 02:24:21 +08:00
|
|
|
vagrant-validate:
|
|
|
|
extends: .job
|
|
|
|
stage: unit-tests
|
2020-03-14 01:29:22 +08:00
|
|
|
tags: [light]
|
2019-12-17 23:11:59 +08:00
|
|
|
variables:
|
2024-01-11 18:23:15 +08:00
|
|
|
VAGRANT_VERSION: 2.3.7
|
2019-05-03 02:24:21 +08:00
|
|
|
script:
|
2019-12-17 23:11:59 +08:00
|
|
|
- ./tests/scripts/vagrant-validate.sh
|
2019-05-03 02:24:21 +08:00
|
|
|
except: ['triggers', 'master']
|
|
|
|
|
2022-06-29 15:14:05 +08:00
|
|
|
|
2024-05-22 21:44:40 +08:00
|
|
|
# TODO: convert to pre-commit hook
|
2023-03-27 17:25:55 +08:00
|
|
|
check-galaxy-version:
|
|
|
|
stage: unit-tests
|
|
|
|
tags: [light]
|
|
|
|
image: python:3
|
|
|
|
script:
|
|
|
|
- tests/scripts/check_galaxy_version.sh
|