Skip to content

Commit 4ea647e

Browse files
committed
Merge pull request sigmavirus24#293 from msabramo/bring_tox.ini_from_1.0-alpha_branch
tox.ini: Bring over changes from 1.0-alpha branch
2 parents ec5eb5f + 260cb49 commit 4ea647e

File tree

2 files changed

+58
-27
lines changed

2 files changed

+58
-27
lines changed

.travis.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
language: python
2-
python:
3-
- 2.6
4-
- 2.7
5-
- 3.2
6-
- 3.3
7-
- 3.4
8-
- pypy
9-
# command to run tests, e.g. python setup.py test
102
before_script:
11-
- pip install -r dev-requirements.txt
3+
- pip install tox
124
- pip install -U requests"$REQUESTS_VERSION"
135

146
# test script
15-
script: make travis
7+
script: tox -e ${TOX_ENV}
168
notifications:
17-
on_success: change
18-
on_failure: always
9+
on_success: change
10+
on_failure: always
1911

2012
env:
2113
global:
2214
- TRAVIS_GH3="True"
2315
matrix:
24-
- REQUESTS_VERSION="==2.0.1"
25-
- REQUESTS_VERSION="" # Latest
16+
- TOX_ENV=py26 REQUESTS_VERSION="==2.0.1"
17+
- TOX_ENV=py27 REQUESTS_VERSION="==2.0.1"
18+
- TOX_ENV=py32 REQUESTS_VERSION="==2.0.1"
19+
- TOX_ENV=py33 REQUESTS_VERSION="==2.0.1"
20+
- TOX_ENV=py34 REQUESTS_VERSION="==2.0.1"
21+
- TOX_ENV=pypy REQUESTS_VERSION="==2.0.1"
22+
- TOX_ENV=py26 REQUESTS_VERSION=""
23+
- TOX_ENV=py27 REQUESTS_VERSION=""
24+
- TOX_ENV=py32 REQUESTS_VERSION=""
25+
- TOX_ENV=py33 REQUESTS_VERSION=""
26+
- TOX_ENV=py34 REQUESTS_VERSION=""
27+
- TOX_ENV=pypy REQUESTS_VERSION=""
28+
- TOX_ENV=py27-flake8
29+
- TOX_ENV=py34-flake8
30+
31+
matrix:
32+
allow_failures:
33+
- env: TOX_ENV=py27-flake8
34+
- env: TOX_ENV=py34-flake8

tox.ini

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,42 @@
11
[tox]
2-
envlist = py26,py27,py32,py33,py34
2+
envlist = py26,py27,py32,py33,py34,pypy,{py27,py34}-flake8
3+
34
[testenv]
4-
deps =
5-
requests>=1.2.3
6-
coverage>=3.5.2
7-
mock>=1.0.1
8-
commands =
9-
python setup.py test
5+
pip_pre = False
6+
deps = -rdev-requirements.txt
7+
commands = py.test
8+
9+
[testenv:pypy]
10+
deps =
11+
-rdev-requirements.txt
12+
unittest2
13+
commands = py.test
1014

1115
[testenv:py26]
12-
deps =
13-
requests>=1.2.3
14-
coverage>=3.5.2
15-
mock>=1.0.1
16-
commands =
17-
python setup.py test
16+
deps =
17+
-rdev-requirements.txt
18+
unittest2
19+
commands = py.test
20+
21+
[testenv:py27]
22+
deps =
23+
-rdev-requirements.txt
24+
unittest2
25+
commands = py.test
26+
27+
[testenv:py27-flake8]
28+
basepython = python2.7
29+
deps =
30+
flake8
31+
flake8-docstrings
32+
commands = flake8 github3/
33+
34+
[testenv:py34-flake8]
35+
basepython = python3.4
36+
deps =
37+
flake8
38+
flake8-docstrings
39+
commands = flake8 github3/
1840

1941
[pytest]
2042
addopts = -q tests/

0 commit comments

Comments
 (0)