Skip to content

Commit 631ae2f

Browse files
committed
Add tests for py-lz4framed
1 parent 0e83048 commit 631ae2f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install:
3434
- pip install .
3535

3636
script:
37-
- tox -e `if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then echo pypy; else echo py${TRAVIS_PYTHON_VERSION/./}; fi`
37+
- export pyver=$(if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then echo pypy; else echo py${TRAVIS_PYTHON_VERSION/./}; fi) && tox -e ${pyver} && source .tox/${pyver}/bin/activate && make test-py-lz4framed
3838

3939
after_success:
4040
- coveralls

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ test36: build-integration
2020
test27: build-integration
2121
KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py27 -- $(FLAGS)
2222

23+
test-py-lz4framed:
24+
pip uninstall -y lz4 && pip install py-lz4framed
25+
py.test -pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka --cov-config=.covrc
26+
27+
2328
# Test using py.test directly if you want to use local python. Useful for other
2429
# platforms that require manual installation for C libraries, ie. Windows.
2530
test-local: build-integration

0 commit comments

Comments
 (0)