Try out a linting CI config
This commit is contained in:
parent
a7fbe280d0
commit
de5fd701c6
35
.circleci/config.yml
Normal file
35
.circleci/config.yml
Normal file
@ -0,0 +1,35 @@
|
||||
version: 2
|
||||
jobs:
|
||||
lint:
|
||||
docker:
|
||||
- image: 'python:3.7'
|
||||
|
||||
environment:
|
||||
KMK_TEST: 1
|
||||
PIPENV_VENV_IN_PROJECT: 1
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-kmk-lint-{{ checksum "Pipfile.lock" }}
|
||||
|
||||
- run: pip install pipenv==2018.7.1
|
||||
- run: pipenv install --dev
|
||||
- run: pipenv run flake8
|
||||
|
||||
- save_cache:
|
||||
key: v1-kmk-lint-{{ checksum "Pipfile.lock" }}
|
||||
paths:
|
||||
- .venv
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build-deploy:
|
||||
jobs:
|
||||
- lint:
|
||||
filters:
|
||||
branches:
|
||||
only: /.*/
|
||||
tags:
|
||||
only: /.*/
|
Loading…
Reference in New Issue
Block a user