Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the tox jobs run in parallel &... #1864

Merged
merged 2 commits into from
Jun 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:

before_install:
# https://github.com/travis-ci/travis-ci/issues/6069#issuecomment-266546552
- git remote set-branches --add origin master
- git remote set-branches --add origin develop
AndreMiras marked this conversation as resolved.
Show resolved Hide resolved
- git fetch

env:
Expand All @@ -23,8 +23,8 @@ env:

jobs:
include:
- stage: lint
name: "Tox tests and coverage"
- &linting
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we apply the same technique that we use in the test stage, explained here

stage: lint
language: python
python: 3.7
before_script:
Expand All @@ -45,6 +45,14 @@ jobs:
- tox -- tests/ --ignore tests/test_pythonpackage.py
# (we ignore test_pythonpackage.py since these run way too long!!
# test_pythonpackage_basic.py will still be run.)
name: "Tox Pep8"
env: TOXENV=pep8
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we use a tox feature, explained here

- <<: *linting
name: "Tox Python 2"
env: TOXENV=py27
- <<: *linting
name: "Tox Python 3 & Coverage"
env: TOXENV=py3
after_success:
- coveralls

Expand Down