Skip to content

Commit 63b8a85

Browse files
committed
Re-enable testing on Python 2.7
The problem we encountered previously should be fixed: https://bitbucket.org/amentajo/lib3to2/commits/25142967e481da45cd69283c8236239cdd57cb5d
1 parent f1e9670 commit 63b8a85

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎.travis.yml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1-
sudo: false
2-
31
language: python
42

53
python:
4+
- "2.7"
65
- "3.2"
76
- "3.3"
87
- "3.4"
98

9+
before_install:
10+
# This is needed for Python multiprocessing (due to 3to2 dependency).
11+
# https://github.com/travis-ci/travis-cookbooks/issues/155
12+
- sudo rm -rf /dev/shm
13+
- sudo ln -s /run/shm /dev/shm
14+
1015
install:
16+
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip --quiet install 3to2; fi
1117
- python setup.py --quiet install
1218

1319
script:
14-
- python test.py
15-
- ./run_doctest.py -v README.rst download_lt.py
16-
- ./test.bash
20+
- if [ "$TRAVIS_PYTHON_VERSION" != "2.7" ]; then python test.py; fi
21+
22+
- if [ "$TRAVIS_PYTHON_VERSION" != "2.7" ]; then ./run_doctest.py -v README.rst download_lt.py; fi
23+
24+
# Prevent Python 2.7 from using the non-3to2 converted code.
25+
- cd language_check; ../test.bash
1726

1827
# Smoke test.
1928
- echo 'This is a sentence.' > foo.txt

0 commit comments

Comments
 (0)