Skip to content

Commit 0fcdbd1

Browse files
committed
Added travis yaml file.
1 parent 2d5a3fc commit 0fcdbd1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Config file for automatic testing at travis-ci.org
2+
3+
language: python
4+
5+
python:
6+
- "pypy3"
7+
- "pypy"
8+
- "3.6"
9+
- "3.5"
10+
- "3.4"
11+
- "2.7"
12+
13+
# Use container-based infrastructure
14+
sudo: false
15+
16+
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
17+
install:
18+
- pip install -r requirements.txt
19+
- pip install coverage
20+
21+
# command to run tests, e.g. python setup.py test
22+
script:
23+
- coverage run --source pointofview setup.py test --verbose
24+
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then python -m doctest pointofview/__init__.py; fi
25+
26+
after_success:
27+
- pip install coveralls
28+
- coveralls # send coverage to coveralls.io
29+
30+
after_script:
31+
- coverage report # show coverage on cmd line
32+
- pip install pycodestyle pyflakes
33+
- pyflakes . | tee >(wc -l) # static analysis
34+
- pycodestyle --statistics --count . # static analysis

0 commit comments

Comments
 (0)