Merge pull request #89 from msgpack/better-travis
travis: Simplify .travis.yml and add PyPy env.
This commit is contained in:
10
.travis.yml
10
.travis.yml
@@ -2,14 +2,8 @@ language: python
|
|||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
|
|
||||||
env:
|
|
||||||
- PIP_USE_MIRRORS=true
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get update -qq
|
- pip install tox cython
|
||||||
- sudo apt-get install -q python3.3-dev
|
- cython --cplus msgpack/_packer.pyx msgpack/_unpacker.pyx
|
||||||
- pip install --use-mirrors tox cython
|
|
||||||
- cython --cplus msgpack/_packer.pyx
|
|
||||||
- cython --cplus msgpack/_unpacker.pyx
|
|
||||||
|
|
||||||
script: "tox && MSGPACK_PUREPYTHON=x tox"
|
script: "tox && MSGPACK_PUREPYTHON=x tox"
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ from io import BytesIO
|
|||||||
def check(data, use_list=False):
|
def check(data, use_list=False):
|
||||||
re = unpackb(packb(data), use_list=use_list)
|
re = unpackb(packb(data), use_list=use_list)
|
||||||
assert re == data
|
assert re == data
|
||||||
assert type(re) == type(data)
|
|
||||||
|
|
||||||
def testPack():
|
def testPack():
|
||||||
test_data = [
|
test_data = [
|
||||||
|
|||||||
Reference in New Issue
Block a user