Make CI job `lint` require `test`
This commit is contained in:
parent
2885f853c2
commit
b0747703a7
|
@ -52,7 +52,7 @@ jobs:
|
||||||
key: v1-specs-repo-{{ .Branch }}-{{ .Revision }}
|
key: v1-specs-repo-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
- ~/specs-repo
|
- ~/specs-repo
|
||||||
install_test:
|
install_env:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:3.6
|
- image: circleci/python:3.6
|
||||||
working_directory: ~/specs-repo
|
working_directory: ~/specs-repo
|
||||||
|
@ -64,7 +64,7 @@ jobs:
|
||||||
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
|
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
|
||||||
- run:
|
- run:
|
||||||
name: Install pyspec requirements
|
name: Install pyspec requirements
|
||||||
command: make install_test
|
command: make install_test && make install_lint
|
||||||
- save_cached_venv:
|
- save_cached_venv:
|
||||||
venv_name: v1-pyspec
|
venv_name: v1-pyspec
|
||||||
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
|
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
|
||||||
|
@ -96,18 +96,18 @@ jobs:
|
||||||
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
|
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
|
||||||
- run:
|
- run:
|
||||||
name: Run linter
|
name: Run linter
|
||||||
command: make install_lint && make lint
|
command: make lint
|
||||||
workflows:
|
workflows:
|
||||||
version: 2.1
|
version: 2.1
|
||||||
test_spec:
|
test_spec:
|
||||||
jobs:
|
jobs:
|
||||||
- checkout_specs
|
- checkout_specs
|
||||||
- lint:
|
- install_env:
|
||||||
requires:
|
|
||||||
- checkout_specs
|
|
||||||
- install_test:
|
|
||||||
requires:
|
requires:
|
||||||
- checkout_specs
|
- checkout_specs
|
||||||
- test:
|
- test:
|
||||||
requires:
|
requires:
|
||||||
- install_test
|
- install_env
|
||||||
|
- lint:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
|
Loading…
Reference in New Issue