Add travis builds
This commit is contained in:
14
.travis.yml
Normal file
14
.travis.yml
Normal 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
|
@@ -33,8 +33,7 @@ from websocket._http import read_headers
|
|||||||
|
|
||||||
|
|
||||||
# Skip test to access the internet.
|
# Skip test to access the internet.
|
||||||
TEST_WITH_INTERNET = False
|
TEST_WITH_INTERNET = os.environ.get('TEST_WITH_INTERNET', '0') == '1'
|
||||||
# TEST_WITH_INTERNET = True
|
|
||||||
|
|
||||||
# Skip Secure WebSocket test.
|
# Skip Secure WebSocket test.
|
||||||
TEST_SECURE_WS = True
|
TEST_SECURE_WS = True
|
||||||
|
Reference in New Issue
Block a user