Skip to content

Instantly share code, notes, and snippets.

@andreif
Last active April 14, 2018 15:07
Show Gist options
  • Select an option

  • Save andreif/48fc6f7d0c76c6b4dbc0a85c2e1b2740 to your computer and use it in GitHub Desktop.

Select an option

Save andreif/48fc6f7d0c76c6b4dbc0a85c2e1b2740 to your computer and use it in GitHub Desktop.
version: 2
steps: &steps
steps:
- checkout
- run: {command: sudo pip install tox}
- run: {command: tox}
- persist_to_workspace:
root: .
paths:
- .coverage.*
jobs:
py36:
docker: [{image: 'circleci/python:3.6'}]
environment: {TOXENV: 'py36-django{111,20}'}
<<: *steps
py35:
docker: [{image: 'circleci/python:3.5'}]
environment: {TOXENV: 'py35-django{18,19,110,111,20}'}
<<: *steps
py34:
docker: [{image: 'circleci/python:3.4'}]
environment: {TOXENV: 'py34-django{17,18,19,110,111,20}'}
<<: *steps
py27:
docker: [{image: 'circleci/python:2.7'}]
environment: {TOXENV: 'py27-django{15,16,17,18,19,110,111}'}
<<: *steps
coverage:
docker: [{image: 'circleci/python:3.5'}]
steps:
- checkout
- attach_workspace: {at: .}
- run: {command: sudo pip install coverage}
- run: {command: make coverage}
- run: {command: sudo pip install python-coveralls}
- run: {command: coveralls}
workflows:
version: 2
tests-and-coverage:
jobs:
- py27
- py34
- py35
- py36
- coverage:
requires:
- py27
- py34
- py35
- py36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment