41 lines
920 B
YAML
41 lines
920 B
YAML
---
|
|
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
|
|
|
|
vagrant-validate:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
VAGRANT_VERSION: 2.3.7
|
|
script:
|
|
- ./tests/scripts/vagrant-validate.sh
|
|
except: ['triggers', 'master']
|
|
|
|
|
|
# TODO: convert to pre-commit hook
|
|
check-galaxy-version:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/check_galaxy_version.sh
|