Skip to content

Commit

Permalink
Make elasticsearch switchable in tox, allow ES failures in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed May 3, 2016
1 parent a226c7f commit c495f02
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 23 deletions.
51 changes: 30 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,53 @@ sudo: false

matrix:
include:
- env: TOXENV=py27-dj18-postgres
- env: TOXENV=py27-dj18-postgres-noelasticsearch
python: 2.7
- env: TOXENV=py27-dj18-mysql
- env: TOXENV=py27-dj18-mysql-noelasticsearch
python: 2.7
- env: TOXENV=py27-dj18-sqlite
- env: TOXENV=py27-dj18-sqlite-noelasticsearch
python: 2.7
- env: TOXENV=py33-dj18-postgres
- env: TOXENV=py33-dj18-postgres-noelasticsearch
python: 3.3
- env: TOXENV=py34-dj18-postgres
- env: TOXENV=py34-dj18-postgres-noelasticsearch
python: 3.4
- env: TOXENV=py34-dj18-sqlite
- env: TOXENV=py34-dj18-sqlite-noelasticsearch
python: 3.4
- env: TOXENV=py34-dj18-mysql
- env: TOXENV=py34-dj18-mysql-noelasticsearch
python: 3.4
- env: TOXENV=py35-dj18-postgres
- env: TOXENV=py35-dj18-postgres-noelasticsearch
python: 3.5
- env: TOXENV=py35-dj18-sqlite
- env: TOXENV=py35-dj18-sqlite-noelasticsearch
python: 3.5
- env: TOXENV=py35-dj18-mysql
- env: TOXENV=py35-dj18-mysql-noelasticsearch
python: 3.5
- env: TOXENV=py27-dj19-postgres
- env: TOXENV=py27-dj19-postgres-noelasticsearch
python: 2.7
# - env: TOXENV=py27-dj19-mysql
# - env: TOXENV=py27-dj19-sqlite
# - env: TOXENV=py33-dj19-postgres
- env: TOXENV=py34-dj19-postgres
- env: TOXENV=py34-dj19-postgres-noelasticsearch
python: 3.4
- env: TOXENV=py34-dj19-sqlite
- env: TOXENV=py34-dj19-sqlite-noelasticsearch
python: 3.4
- env: TOXENV=py34-dj19-mysql
- env: TOXENV=py34-dj19-mysql-noelasticsearch
python: 3.4
- env: TOXENV=py35-dj19-postgres
- env: TOXENV=py35-dj19-postgres-noelasticsearch
python: 3.5
- env: TOXENV=py35-dj19-sqlite
- env: TOXENV=py35-dj19-sqlite-noelasticsearch
python: 3.5
- env: TOXENV=py35-dj19-mysql
- env: TOXENV=py35-dj19-mysql-noelasticsearch
python: 3.5

- env: TOXENV=py27-dj18-sqlite-elasticsearch
python: 2.7
- env: TOXENV=py27-dj19-postgres-elasticsearch
python: 2.7
- env: TOXENV=py35-dj18-postgres-elasticsearch
python: 3.5
- env: TOXENV=py35-dj19-sqlite-elasticsearch
python: 3.5
allow_failures:
- env: TOXENV=py27-dj18-sqlite-elasticsearch
- env: TOXENV=py27-dj19-postgres-elasticsearch
- env: TOXENV=py35-dj18-postgres-elasticsearch
- env: TOXENV=py35-dj19-sqlite-elasticsearch

# Services
services:
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
skipsdist = True
usedevelop = True

envlist = py{27,33,34,35}-dj{18,19}-{sqlite,postgres,mysql}, flake8
envlist = py{27,33,34,35}-dj{18,19}-{sqlite,postgres,mysql}-{elasticsearch,noelasticsearch}, flake8

[flake8]
ignore = E501,E303
exclude = wagtail/project_template/*
max-line-length = 120

[testenv]
commands=coverage run runtests.py --elasticsearch
commands =
elasticsearch: coverage run runtests.py wagtail.wagtailsearch --elasticsearch
noelasticsearch: coverage run runtests.py

basepython =
py27: python2.7
Expand Down

0 comments on commit c495f02

Please sign in to comment.