bumpver/.travis.yml

39 lines
730 B
YAML
Raw Normal View History

2018-09-05 08:43:36 +02:00
os: linux
dist: xenial
sudo: true
2018-09-03 09:19:27 +02:00
language: python
2018-09-05 08:43:36 +02:00
cache: pip
2018-09-03 09:19:27 +02:00
python:
2018-09-05 08:43:36 +02:00
- "3.7"
2018-09-05 09:01:54 +02:00
# - "3.6"
# - "3.5"
2018-09-05 08:50:32 +02:00
# - "3.4" # not available for xenial
2018-09-05 08:43:36 +02:00
- "2.7"
before_install:
2018-09-05 08:50:32 +02:00
- sudo apt-get install -y git mercurial
2018-09-05 09:27:01 +02:00
- sudo setup_travis.sh
2018-09-05 08:43:36 +02:00
2018-09-03 09:19:27 +02:00
install:
2018-09-05 08:43:36 +02:00
- pip install $(cat requirements-test.txt)
2018-09-05 09:27:01 +02:00
- python3.7 -m pip install lib3to6
2018-09-05 08:50:32 +02:00
- python3.7 setup.py bdist_wheel --python-tag=py2.py3
2018-09-03 09:19:27 +02:00
script:
2018-09-05 09:01:54 +02:00
- python --version
- python3.7 --version
2018-09-04 19:53:40 +02:00
- python -m flake8 src/pycalver/
2018-09-05 08:43:36 +02:00
- export MYPYPATH=stubs/
2018-09-04 19:53:40 +02:00
- python -m mypy src/pycalver/
2018-09-05 08:43:36 +02:00
- export PYTHONPATH=src/:$PYTHONPATH
2018-09-04 19:53:40 +02:00
- python -m pytest --cov=pycalver test/
2018-09-05 08:43:36 +02:00
- codecov
2018-09-03 09:19:27 +02:00
- rst2html5 --strict README.rst > /dev/null
2018-09-05 08:43:36 +02:00
- rst2html5 --strict CHANGELOG.rst > /dev/null