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

Switch to tox-travis #43

Merged
merged 6 commits into from
Dec 4, 2019
Merged

Switch to tox-travis #43

merged 6 commits into from
Dec 4, 2019

Conversation

amureki
Copy link
Collaborator

@amureki amureki commented Dec 3, 2019

This PR adds official Travis package, called tox-travis (https://tox-travis.readthedocs.io/en/stable/) to simplify test suite.

Previously we defined complicated matrix in travis config to run all possible version and service variations we have. Now this package handles all that, we only need to specify which python versions to run against. This looks much cleaner and simpler to maintain.

Also, now it uses 3 jobs instead of 14, which reduces running time from ~11 minutes down to ~4 minutes.
Total run time reduced from ~27 minutes to ~11 minutes.

Linting tasks are running under python 3.6 environment since version does not really matter here (instead of having expensive separate job).

And I need to mention a small positive bug fix that I accidentaly made here. PostgreSQL tests were not running after switching to Travis matrix (shame on me):
https://travis-ci.com/model-bakers/model_bakery/jobs/262622958

Now they do run properly. :)

@amureki amureki added the WIP label Dec 3, 2019
Rustem Saiargaliev added 2 commits December 3, 2019 21:04
Copy link
Contributor

@anapaulagomes anapaulagomes left a comment

Choose a reason for hiding this comment

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

This package is really cool and the numbers are impressive! Well done, @amureki. 🏆

@amureki amureki merged commit 59bc5f0 into master Dec 4, 2019
@amureki amureki deleted the tox-travis branch December 4, 2019 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants