Skip to content

Commit 55c9016

Browse files
committed
Fixed running tests on Travis CI
1 parent 697b188 commit 55c9016

File tree

9 files changed

+23
-22
lines changed

9 files changed

+23
-22
lines changed

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
sudo: false
12
language: python
2-
python: 2.7
3-
env:
4-
- TOX_ENV=py26
5-
- TOX_ENV=py27
6-
- TOX_ENV=py32
7-
- TOX_ENV=py33
8-
- TOX_ENV=pypy
3+
matrix:
4+
include:
5+
- python: 2.6
6+
env: TOXENV=py26
7+
- python: 2.7
8+
env: TOXENV=py27
9+
- python: 3.3
10+
env: TOXENV=py33
11+
- python: 3.4
12+
env: TOXENV=py34
13+
- python: pypy
14+
env: TOXENV=pypy
915
install:
10-
- "[[ ${TOX_ENV} == pypy ]] && sudo add-apt-repository -y ppa:pypy/ppa || true"
11-
- "[[ ${TOX_ENV} == pypy ]] && sudo apt-get -y update && sudo apt-get -y install pypy || true"
12-
# This is required because we need to get rid of the Travis installed PyPy
13-
# or it'll take precedence over the PPA installed one.
14-
- "[[ ${TOX_ENV} == pypy ]] && sudo rm -rf /usr/local/pypy/bin || true"
15-
- "[[ ${TOX_ENV} == pypy ]] && pypy --version || true"
1616
- pip install tox
1717
script:
18-
- tox -e $TOX_ENV
18+
- tox
1919

tests/test_fibers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88
import sys
99

10-
if 'TOX_ENV' not in os.environ:
10+
if 'IS_TOX' not in os.environ:
1111
sys.path.insert(0, '../')
1212

1313
import fibers

tests/test_gc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import sys
88

9-
if 'TOX_ENV' not in os.environ:
9+
if 'IS_TOX' not in os.environ:
1010
sys.path.insert(0, '../')
1111

1212
from fibers import Fiber, current

tests/test_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import sys
66

7-
if 'TOX_ENV' not in os.environ:
7+
if 'IS_TOX' not in os.environ:
88
sys.path.insert(0, '../')
99

1010
import fibers

tests/test_generator_nested.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import sys
66

7-
if 'TOX_ENV' not in os.environ:
7+
if 'IS_TOX' not in os.environ:
88
sys.path.insert(0, '../')
99

1010
import fibers

tests/test_leaks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88
import sys
99

10-
if 'TOX_ENV' not in os.environ:
10+
if 'IS_TOX' not in os.environ:
1111
sys.path.insert(0, '../')
1212

1313
from fibers import Fiber, current

tests/test_throw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import sys
66

7-
if 'TOX_ENV' not in os.environ:
7+
if 'IS_TOX' not in os.environ:
88
sys.path.insert(0, '../')
99

1010
import fibers

tests/test_weakref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import sys
88

9-
if 'TOX_ENV' not in os.environ:
9+
if 'IS_TOX' not in os.environ:
1010
sys.path.insert(0, '../')
1111

1212
import fibers

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[tox]
2-
envlist = py26, py27, py31, py32, py33, pypy
2+
envlist = py26, py27, py33, py34, pypy
33

44
[testenv]
5+
setenv = IS_TOX=1
56
deps = nose
67
commands = nosetests -v []
78

0 commit comments

Comments
 (0)