File tree Expand file tree Collapse file tree 2 files changed +38
-34
lines changed Expand file tree Collapse file tree 2 files changed +38
-34
lines changed Original file line number Diff line number Diff line change 11branches :
22 only :
33 - master
4- language : python
4+
55sudo : false
6+
67before_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+
911install :
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+
1316script :
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"
Original file line number Diff line number Diff line change 11[tox]
22envlist =
33 py27
4- py33
54 py34
65 py35
76 py36
8- coverage
7+ appengine
8+ coveralls-py2
9+ coveralls-py3
10+
911skip_missing_interpreters = True
1012
13+ # Defaults settings.
1114[testenv]
12- setenv =
13- PYTHONPATH = {toxinidir}/google_appengine
1415deps =
15- py26: importlib
1616 faker
1717 pytest
18-
1918passenv =
2019 ALGOLIA*
2120 APPENGINE*
2221 TRAVIS*
22+
2323commands = pytest tests
2424
25- [testenv:coverage]
25+ # Appengine settings.
26+ [testenv:appengine]
2627basepython = 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]
3834basepython = python2.7
3935deps =
@@ -49,6 +45,7 @@ commands =
4945 coverage report
5046 coveralls
5147
48+ # Python 3 coverage.
5249[testenv:coveralls-py3]
5350basepython = python3.4
5451deps =
@@ -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
You can’t perform that action at this time.
0 commit comments