Skip to content

Commit bd44b03

Browse files
committed
Travis: be friendlier: generate less envs
This reverts bc001fd / 464f8b5. Ref: pytest-dev@bc001fd#commitcomment-12362388
1 parent 099fcb4 commit bd44b03

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ env:
2323
- TESTENV=python3.4-1.7-sqlite_file
2424
- TESTENV=python3.4-1.8-sqlite_file
2525
- TESTENV=python3.4-master-sqlite_file
26-
- TESTENV=python3.5-1.5-sqlite_file
27-
- TESTENV=python3.5-1.6-sqlite_file
28-
- TESTENV=python3.5-1.7-sqlite_file
29-
- TESTENV=python3.5-1.8-sqlite_file
3026
- TESTENV=python3.5-master-postgres
3127
- TESTENV=python3.5-master-sqlite
3228
- TESTENV=python3.5-master-sqlite_file

generate_configurations.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,14 @@ def generate_default_envs(envs):
165165

166166
def find_and_add(variations, env_getter):
167167
for variation in variations:
168-
for env in reversed(envs):
169-
if env_getter(env) == variation:
170-
result.add(env)
168+
for existing in result:
169+
if env_getter(existing) == variation:
171170
break
171+
else:
172+
for env in reversed(envs):
173+
if env_getter(env) == variation:
174+
result.add(env)
175+
break
172176

173177
# Add all Django versions for each main python version (2.x and 3.x).
174178
find_and_add(itertools.product(PYTHON_MAIN_VERSIONS, DJANGO_VERSIONS),

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = pypy-master-sqlite_file,pypy3-1.8-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-1.6-sqlite_file,python3.3-1.6-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-sqlite_file,python3.5-1.5-sqlite_file,python3.5-1.6-sqlite_file,python3.5-1.7-sqlite_file,python3.5-1.8-sqlite_file,python3.5-master-postgres,python3.5-master-sqlite,python3.5-master-sqlite_file,checkqa-python2.7,checkqa-python3.4
2+
envlist = pypy-master-sqlite_file,pypy3-1.8-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-1.6-sqlite_file,python3.3-1.6-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-sqlite_file,python3.5-master-postgres,python3.5-master-sqlite,python3.5-master-sqlite_file,checkqa-python2.7,checkqa-python3.4
33

44
[testenv]
55
whitelist_externals =

0 commit comments

Comments
 (0)