Skip to content

Commit 2f639e9

Browse files
committed
Only install twisted on python 2.
1 parent feec99b commit 2f639e9

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.install

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
PYTHON_VERSION=$(python --version 2>&1)
4+
5+
if [[ "$PYTHON_VERSION" > "Python 3" ]]; then
6+
7+
else
8+
pip install twisted
9+
fi

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ matrix:
1111
- python: 2.6
1212

1313
install:
14-
# `pip install twisted` fails on python 3 except on trunk.
15-
- "pip install pytest coveralls pytz . git+https://github.com/twisted/twisted"
14+
- "bash .travis.install"
15+
- "pip install pytest coveralls pytz ."
1616
script:
1717
- "coverage run $(which py.test) ."
1818
after_success:

0 commit comments

Comments
 (0)