Skip to content

A better setup for CI - #1

Merged
EmilStenstrom merged 5 commits into
masterfrom
ci
Jun 14, 2015
Merged

EmilStenstrom merged 5 commits into
masterfrom
ci

Conversation

@ryanhiebert

Copy link
Copy Markdown
Contributor

No description provided.

@EmilStenstrom

Copy link
Copy Markdown
Collaborator

Excellent additions. Didn't think about the order of the dict.

As someone who hasn't run tox before, how do I run the tests? The ideas with the run_tests.py file was to make test running easy.

@ryanhiebert

Copy link
Copy Markdown
Contributor Author

You install tox with pip install tox (or some variation of it depending on whether it's a global install, user install, virtualenv, etc), then just run tox from anywhere in the repository. The rest is configured in the tox.ini file.

@ryanhiebert

Copy link
Copy Markdown
Contributor Author

Tox deals with setting up the virtualenvs for each version of python that you want to test with, and it's even able to set up a build matrix of virtualenvs for different versions of Django, etc.

@EmilStenstrom

Copy link
Copy Markdown
Collaborator

Ok! Could you add a couple of lines to the Readme too then? How to install What you need to run the tests and then run them. Just to make participation easy.

Then lets merge this.

The registry is a dictionary, so comparing items() has a couple of
problems:

1. The order of a dictionary is unstable, so it may not turn out as
   expected.
2. items() returns a list in Python 2, but a dict_items in Python 3,
   which makes the comparison fail.
EmilStenstrom added a commit that referenced this pull request Jun 14, 2015
Setup Travis CI to test against both Python 2 and Python 3.
@EmilStenstrom
EmilStenstrom merged commit f35f206 into master Jun 14, 2015
@EmilStenstrom
EmilStenstrom deleted the ci branch June 14, 2015 10:27
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.

2 participants