Created
May 17, 2020 08:40
-
-
Save mattcanty/babff7e4770aa00d8ceaa312225a3b9a to your computer and use it in GitHub Desktop.
pre-commit GitLab CI
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
variables: | |
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/" | |
cache: | |
paths: | |
- .cache/pip | |
- .cache/pre-commit | |
precommit: | |
image: golang | |
before_script: | |
- python -V | |
- apt-get update | |
- apt-get install -y python-pip | |
- pip install pre-commit | |
script: | |
- SKIP=go-unit-tests pre-commit run --all-files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment