travis experiment #1

This commit is contained in:
Manuel Barkhau 2018-09-05 08:43:36 +02:00
parent 7125934418
commit e0690d9678
2 changed files with 24 additions and 21 deletions

View file

@ -1,22 +1,37 @@
os: linux
dist: xenial
sudo: true
language: python
cache: pip
python:
# - "3.7"
- "3.7"
- "3.6"
# NOTE (mb 2018-09-03): These should be installed via
# a bdist wheel, generated with python3.6.
# - "3.5"
# - "3.4"
# - "2.7"
- "3.5"
- "3.4"
- "2.7"
before_install:
- apt-get install -y git mercurial
- apt-get install -y python3.7
- python3.7 -m pip install lib3to6
- python3.7 setup.py bdist_wheel --python-tag=py2.py3
install:
- pip install rst2html5 flake8 pytest pytest-cov mypy typing-extensions
- pip install $(cat requirements-test.txt)
- pip install .
script:
- export PYTHONPATH=src/:$PYTHONPATH
- export MYPYPATH=stubs/
- python -m flake8 src/pycalver/
- export MYPYPATH=stubs/
- python -m mypy src/pycalver/
- export PYTHONPATH=src/:$PYTHONPATH
- python -m pytest --cov=pycalver test/
- codecov
- rst2html5 --strict README.rst > /dev/null
- rst2html5 --strict CHANGELOG.rst > /dev/null