mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixing pre-commit
This commit is contained in:
parent
0cf809a3c3
commit
cd5c8bfd96
1 changed files with 17 additions and 6 deletions
|
@ -1,15 +1,26 @@
|
|||
---
|
||||
stages:
|
||||
- pre-commit
|
||||
- lint
|
||||
- test
|
||||
|
||||
include:
|
||||
- project: 'saltstack/pop/cicd/ci-templates'
|
||||
file: '/lint/pre-commit-run-all.yml'
|
||||
pre-commit-run-all:
|
||||
image:
|
||||
name: registry.gitlab.com/saltstack/pop/cicd/containers/ubuntu1804:latest
|
||||
entrypoint: [""]
|
||||
stage: lint
|
||||
variables:
|
||||
PRE_COMMIT_HOME: "${CI_PROJECT_DIR}/pre-commit-cache"
|
||||
cache:
|
||||
key: pre-commit-cache
|
||||
paths:
|
||||
- pre-commit-cache/
|
||||
script:
|
||||
- pip3 install pre-commit
|
||||
- pre-commit run -a -v --color always
|
||||
|
||||
lint-salt-full:
|
||||
image: registry.gitlab.com/saltstack/pop/cicd/containers/ubuntu1804:latest
|
||||
stage: pre-commit
|
||||
stage: lint
|
||||
tags:
|
||||
- saltstack-internal
|
||||
cache:
|
||||
|
@ -31,7 +42,7 @@ lint-salt-full:
|
|||
|
||||
lint-tests-full:
|
||||
image: registry.gitlab.com/saltstack/pop/cicd/containers/ubuntu1804:latest
|
||||
stage: pre-commit
|
||||
stage: lint
|
||||
tags:
|
||||
- saltstack-internal
|
||||
cache:
|
||||
|
|
Loading…
Add table
Reference in a new issue