- - env: INSTANCE=api-debian-10-3000-1-py3
- - env: INSTANCE=workbench-debian-10-3000-1-py3
- - env: INSTANCE=shell-debian-10-3000-1-py3
- - env: INSTANCE=keepstore-debian-10-3000-1-py3
- # - env: INSTANCE=default-ubuntu-1804-3000-1-py3
+ # Run `pre-commit` linters in a single job
+ - language: 'python'
+ env: 'Lint_pre-commit'
+ name: 'Lint: pre-commit'
+ before_install: 'skip'
+ cache:
+ directories:
+ - $HOME/.cache/pre-commit
+ script:
+ # Install and run `pre-commit`
+ - pip install pre-commit==2.7.1
+ - pre-commit run --all-files --color always --verbose
+ - pre-commit run --color always --hook-stage manual --verbose commitlint-travis
+
+ ## Define the rest of the matrix based on Kitchen testing
+ # Make sure the instances listed below match up with
+ # the `platforms` defined in `kitchen.yml`
+ - env: INSTANCE=api-debian-10-3000-3-py3
+ - env: INSTANCE=workbench-debian-10-3000-3-py3
+ - env: INSTANCE=shell-debian-10-3000-3-py3
+ - env: INSTANCE=keepstore-debian-10-3000-3-py3
+ # - env: INSTANCE=default-ubuntu-1804-3000-3-py3