forked from lrq3000/unireedsolomon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 1.49 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
37
38
39
40
41
42
43
44
45
46
47
language: python
python:
- 2.7
# - 3.3 # problem with Travis, so dropping here but we setup a specific environment below
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
# - pypy # problem with Travis in 2020, with building openssl for some reason even though it's not used
- pypy3
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install importlib unittest2; fi
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install --install-option='--no-cython-compile' cython ; fi
- pip install 'coverage<4'
- pip install coveralls
script:
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then python setup.py build_ext --inplace ; fi
# PyPy is way to slow with coverage at the moment of this writing, so better avoid coverage when using PyPy
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]] ; then nosetests -vv --with-coverage ; else nosetests -vv ; fi
after_success:
coveralls
notifications:
email:
on_success: change
on_failure: change
# PyPy can fail because of Cython - but this should not anymore since the related unit tests are now directly skipped if running under PyPy
#matrix:
# allow_failures:
# - python: pypy
# - python: pypy3
# Run these python versions with a specific distribution to ensure Travis can download and run them, from: https://github.com/travis-ci/travis-ci/issues/9133#issuecomment-531022359
matrix:
include:
# - python: 3.2
# dist: trusty
- python: 3.3
dist: trusty
# - python: 3.7
# dist: xenial
# sudo: true