forked from pattern3/pattern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 1.03 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
language: python
python:
- "2.6"
- "2.7"
- "pypy"
- "3.3"
- "3.4"
matrix:
allow_failures:
- python: "3.3"
- python: "pypy"
install:
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
- pip install --upgrade setuptools
- pip install future
- pip install Pillow==3.4.2
- python setup.py install --quiet
- pip install --quiet pytest-cov
- pip install PyMySQL
script:
# test_05vector_07slp takes too long (so travis errors the build), it also fails on py2!
# TODO make test_05vector_07slp run faster (or do slightly less).
# TODO perhaps split build into tests and examples?
# For now we only run the passing python 3 tests are run on the 3.4 build
- if [ "$TRAVIS_PYTHON_VERSION" == "3.4" ]; then
nosetests --ignore-files=test_examples\|test_db\|test_vector\|test_web; else
nosetests --exclude=test_05vector_07slp --with-coverage --cover-package=pattern;
fi
after_success:
- pip install --quiet coveralls
- coveralls