Add travis builds

This commit is contained in:
John Vandenberg 2015-05-05 15:22:30 +10:00
parent 74f3f53897
commit dc60c232f6
2 changed files with 15 additions and 2 deletions

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: python
python:
- '2.7'
- '3.3'
- '3.4'
- 'pypy'
- 'nightly'
install:
- python -c "import setuptools; print(setuptools.__version__)"
script:
- TEST_WITH_INTERNET=1 python setup.py test

View File

@ -33,8 +33,7 @@ from websocket._http import read_headers
# Skip test to access the internet.
TEST_WITH_INTERNET = False
# TEST_WITH_INTERNET = True
TEST_WITH_INTERNET = os.environ.get('TEST_WITH_INTERNET', '0') == '1'
# Skip Secure WebSocket test.
TEST_SECURE_WS = True