-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
25 lines (25 loc) · 871 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: python
dist: xenial
python:
- 2.7
- 3.6
- 3.7
- 3.8
- 3.9
install:
- sudo apt-get update
- sudo apt-get install libmagic-dev libwebp-dev
# having current Flask or pinning in setup.py breaks travis 2.7 build -- FIXME!
- pip install Flask==1.1.0
- pip install iiif_validator coveralls pep8 pep257 testfixtures
- python setup.py install
script:
- python setup.py test
- pep8 --ignore=E501 *.py iiif/*.py iiif/generators/*.py tests/*.py tests/testlib/*.py
- pep257 *.py iiif/*.py iiif/generators/*.py tests/*.py tests/testlib/*.py
# use -n with run_validate.sh because I can't get the netpbm tests going on Travis
- ./run_validate.sh -n
after_success:
# omit the netpbm manipulator from coverage tests because I haven't flashed those out
- coverage run --source=iiif --omit=iiif/manipulator_netpbm.py setup.py test
- coveralls