Skip to content

Travis: test all Django versions against Python 2 and 3 #207

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

Merged
merged 1 commit into from
Mar 29, 2015
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ env:
- TESTENV=python2.6-1.6-sqlite_file
- TESTENV=python2.7-1.3-sqlite_file
- TESTENV=python2.7-1.4-sqlite_file
- TESTENV=python2.7-1.5-sqlite_file
- TESTENV=python2.7-1.6-sqlite_file
- TESTENV=python2.7-1.7-sqlite_file
- TESTENV=python2.7-1.8-sqlite_file
- TESTENV=python2.7-master-mysql_innodb
- TESTENV=python2.7-master-mysql_myisam
- TESTENV=python2.7-master-sqlite_file
Expand Down
5 changes: 5 additions & 0 deletions generate_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def is_pypy(self):

# Python to run tox.
RUN_PYTHON = '3.4'
PYTHON_MAIN_VERSIONS = ['python2.7', 'python3.4']
PYTHON_VERSIONS = ['python2.6', 'python2.7', 'python3.2', 'python3.3',
'python3.4', 'pypy', 'pypy3']
PYTEST_VERSIONS = ['2.6.4']
Expand Down Expand Up @@ -160,6 +161,10 @@ def find_and_add(variations, env_getter):
result.add(env)
break

# Add all Django versions for each main python version (2.x and 3.x).
find_and_add(itertools.product(PYTHON_MAIN_VERSIONS, DJANGO_VERSIONS),
lambda env: (env.python_version, env.django_version))

find_and_add(PYTHON_VERSIONS, lambda env: env.python_version)
find_and_add(PYTEST_VERSIONS, lambda env: env.pytest_version)
find_and_add(DJANGO_VERSIONS, lambda env: env.django_version)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pypy-master-sqlite_file,pypy3-master-sqlite_file,python2.6-1.6-sqlite_file,python2.7-1.3-sqlite_file,python2.7-1.4-sqlite_file,python2.7-master-mysql_innodb,python2.7-master-mysql_myisam,python2.7-master-sqlite_file,python3.2-master-sqlite_file,python3.3-master-sqlite_file,python3.4-1.5-sqlite_file,python3.4-1.6-sqlite_file,python3.4-1.7-sqlite_file,python3.4-1.8-sqlite_file,python3.4-master-postgres,python3.4-master-sqlite,python3.4-master-sqlite_file,checkqa-python2.6,checkqa-python2.7,checkqa-python3.2,checkqa-python3.3,checkqa-python3.4,checkqa-pypy,checkqa-pypy3
envlist = pypy-master-sqlite_file,pypy3-master-sqlite_file,python2.6-1.6-sqlite_file,python2.7-1.3-sqlite_file,python2.7-1.4-sqlite_file,python2.7-1.5-sqlite_file,python2.7-1.6-sqlite_file,python2.7-1.7-sqlite_file,python2.7-1.8-sqlite_file,python2.7-master-mysql_innodb,python2.7-master-mysql_myisam,python2.7-master-sqlite_file,python3.2-master-sqlite_file,python3.3-master-sqlite_file,python3.4-1.5-sqlite_file,python3.4-1.6-sqlite_file,python3.4-1.7-sqlite_file,python3.4-1.8-sqlite_file,python3.4-master-postgres,python3.4-master-sqlite,python3.4-master-sqlite_file,checkqa-python2.6,checkqa-python2.7,checkqa-python3.2,checkqa-python3.3,checkqa-python3.4,checkqa-pypy,checkqa-pypy3

[testenv]
whitelist_externals =
Expand Down