40 lines
771 B
YAML
40 lines
771 B
YAML
sudo: false
|
|
dist: xenial
|
|
language: python
|
|
notifications:
|
|
email: false
|
|
python:
|
|
- &pypy2 pypy2.7-6.0
|
|
- &pypy3 pypy3.5-6.0
|
|
- 3.8-dev
|
|
- 3.7
|
|
- 3.6
|
|
- 3.5
|
|
- 2.7
|
|
|
|
stages:
|
|
- test
|
|
- lint
|
|
jobs:
|
|
include:
|
|
- stage: lint
|
|
python: 3.6
|
|
script: make lint
|
|
|
|
stage: test
|
|
|
|
script: make test
|
|
|
|
before_install:
|
|
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
|
|
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
|
|
mv min_requirements.txt requirements.txt ;
|
|
fi
|
|
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
|
|
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
|
|
- pip install -r tests/requirements.txt
|
|
script:
|
|
- make test
|
|
after_success:
|
|
codecov
|