From e0690d96786113df9dda3f4c33937ddb3cad008c Mon Sep 17 00:00:00 2001 From: Manuel Barkhau Date: Wed, 5 Sep 2018 08:43:36 +0200 Subject: [PATCH] travis experiment #1 --- .travis.yml | 33 ++++++++++++++++++++++++--------- Makefile | 12 ------------ 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index d230e5d..4d43fdf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 9f68e6e..808ee37 100644 --- a/Makefile +++ b/Makefile @@ -89,18 +89,6 @@ devtest: build/.install.make_marker test/ -build/.coverage_percent.txt: test - @mkdir -p build/ - @grep -oP '>[0-9]+%' 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 @cat README.rst > build/.full_readme.rst @echo "\n" >> build/.full_readme.rst