Skip to content

Commit

Permalink
Introduced Build Stages to our build process (celery#4429)
Browse files Browse the repository at this point in the history
* Move lint to another build stage.

* Lint first, test later.

* Run flake8 with two jobs.
  • Loading branch information
Omer Katz authored Dec 9, 2017
1 parent ebb99a1 commit 28c2c09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ python:
- '3.6'
os:
- linux
stages:
- lint
- test
env:
global:
- PYTHONUNBUFFERED=yes
Expand All @@ -29,16 +32,22 @@ matrix:
env: TOXENV=pypy-integration-dynamodb PYPY_VERSION="pypy2.7-5.8.0"
- python: '3.5'
env: TOXENV=flake8
stage: lint
- python: '3.5'
env: TOXENV=flakeplus
stage: lint
- python: '3.5'
env: TOXENV=apicheck
stage: lint
- python: '3.5'
env: TOXENV=configcheck
stage: lint
- python: '3.5'
env: TOXENV=pydocstyle
stage: lint
- python: '3.5'
env: TOXENV=isort-check
stage: lint
before_install:
- if [[ -v MATRIX_TOXENV ]]; then export TOXENV=${TRAVIS_PYTHON_VERSION}-${MATRIX_TOXENV}; fi; env
- |
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ commands =

[testenv:flake8]
commands =
flake8 {toxinidir}/celery {toxinidir}/t
flake8 -j 2 {toxinidir}/celery {toxinidir}/t

[testenv:flakeplus]
commands =
Expand Down

0 comments on commit 28c2c09

Please sign in to comment.