Skip to content

Commit be3bee2

Browse files
author
cclauss
authored
Run tests under Travis CI
Another attempt at intake#17
1 parent 389b876 commit be3bee2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
group: travis_latest
2+
language: python
3+
cache: pip
4+
python:
5+
- "2.7"
6+
- "3.5"
7+
- "3.6"
8+
- "pypy"
9+
- "pypy3"
10+
addons:
11+
apt:
12+
packages:
13+
- libsnappy-dev
14+
install:
15+
#- pip install python-snappy
16+
- pip install -e
17+
- pip install flake8 nose2 pytest
18+
before_script:
19+
# stop the build if there are Python syntax errors or undefined names
20+
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
21+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
22+
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
23+
script:
24+
- pytest
25+
- nosetests test_snappy.py
26+
- if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then nosetests test_snappy_cffi.py; fi

0 commit comments

Comments
 (0)