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 language: python
cache: pip
python: python:
# - "3.7" - "3.7"
- "3.6" - "3.6"
# NOTE (mb 2018-09-03): These should be installed via - "3.5"
# a bdist wheel, generated with python3.6. - "3.4"
# - "3.5" - "2.7"
# - "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: install:
- pip install rst2html5 flake8 pytest pytest-cov mypy typing-extensions - pip install $(cat requirements-test.txt)
- pip install . - pip install .
script: script:
- export PYTHONPATH=src/:$PYTHONPATH
- export MYPYPATH=stubs/
- python -m flake8 src/pycalver/ - python -m flake8 src/pycalver/
- export MYPYPATH=stubs/
- python -m mypy src/pycalver/ - python -m mypy src/pycalver/
- export PYTHONPATH=src/:$PYTHONPATH
- python -m pytest --cov=pycalver test/ - python -m pytest --cov=pycalver test/
- codecov
- rst2html5 --strict README.rst > /dev/null - rst2html5 --strict README.rst > /dev/null
- rst2html5 --strict CHANGELOG.rst > /dev/null

View file

@ -89,18 +89,6 @@ devtest: build/.install.make_marker
test/ test/
build/.coverage_percent.txt: test
@mkdir -p build/
@grep -oP '>[0-9]+%</td>' htmlcov/index.html \
| head -n 1 \
| grep -oP '[.0-9]+' \
> build/.coverage_percent.txt
README.rst: build/.coverage_percent.txt
@sed -i "s/coverage-[0-9]*/coverage-$$(cat build/.coverage_percent.txt)/" README.rst
build/README.html: build/.install.make_marker README.rst CHANGELOG.rst build/README.html: build/.install.make_marker README.rst CHANGELOG.rst
@cat README.rst > build/.full_readme.rst @cat README.rst > build/.full_readme.rst
@echo "\n" >> build/.full_readme.rst @echo "\n" >> build/.full_readme.rst