Skip to content

Commit b638b39

Browse files
Merge pull request #321 from algolia/fix/travis
Fix/travis
2 parents a9b682b + cfe841c commit b638b39

File tree

2 files changed

+38
-34
lines changed

2 files changed

+38
-34
lines changed

.travis.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
branches:
22
only:
33
- master
4-
language: python
4+
55
sudo: false
6+
67
before_script:
7-
- wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.27.zip
8-
- unzip -q google_appengine_1.9.27.zip
8+
- wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.27.zip
9+
- unzip -q google_appengine_1.9.27.zip
10+
911
install:
10-
- pip install --upgrade pip
11-
- if [[ $TOXENV == 'py32' ]]; then pip install -I 'virtualenv<14.0'; fi
12-
- pip install tox
12+
- pip install --upgrade pip
13+
- if [[ $TOXENV == 'py32' ]]; then pip install -I 'virtualenv<14.0'; fi
14+
- pip install tox-travis
15+
1316
script:
14-
- tox
15-
python: 3.5
16-
env:
17-
matrix:
18-
- TOXENV=py27
19-
- TOXENV=py33
20-
- TOXENV=py34
21-
- TOXENV=py35
22-
- TOXENV=py36
23-
- TOXENV=coveralls-py2
24-
- TOXENV=coveralls-py3
25-
- TOXENV=py27 APPENGINE_RUNTIME=python27
17+
- tox
18+
19+
language: python
20+
21+
python:
22+
- "2.7"
23+
- "3.4"
24+
- "3.5"
25+
- "3.6"

tox.ini

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,35 @@
11
[tox]
22
envlist =
33
py27
4-
py33
54
py34
65
py35
76
py36
8-
coverage
7+
appengine
8+
coveralls-py2
9+
coveralls-py3
10+
911
skip_missing_interpreters = True
1012

13+
# Defaults settings.
1114
[testenv]
12-
setenv =
13-
PYTHONPATH = {toxinidir}/google_appengine
1415
deps =
15-
py26: importlib
1616
faker
1717
pytest
18-
1918
passenv =
2019
ALGOLIA*
2120
APPENGINE*
2221
TRAVIS*
22+
2323
commands = pytest tests
2424

25-
[testenv:coverage]
25+
# Appengine settings.
26+
[testenv:appengine]
2627
basepython = python2.7
27-
deps =
28-
faker
29-
pytest
30-
coverage
31-
passenv =
32-
ALGOLIA*
33-
commands =
34-
coverage run --branch --source=algoliasearch -m pytest
35-
coverage report
28+
setenv =
29+
APPENGINE_RUNTIME = python27
30+
PYTHONPATH = {toxinidir}/google_appengine
3631

32+
# Python 2 coverage.
3733
[testenv:coveralls-py2]
3834
basepython = python2.7
3935
deps =
@@ -49,6 +45,7 @@ commands =
4945
coverage report
5046
coveralls
5147

48+
# Python 3 coverage.
5249
[testenv:coveralls-py3]
5350
basepython = python3.4
5451
deps =
@@ -63,3 +60,10 @@ commands =
6360
coverage run --branch --source=algoliasearch -m pytest tests
6461
coverage report
6562
coveralls
63+
64+
[travis]
65+
python =
66+
2.7: py27, coveralls-py2, appengine
67+
3.4: py34, coveralls-py3
68+
3.5: py35
69+
3.6: py36

0 commit comments

Comments
 (0)