mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
travis experiment #1
This commit is contained in:
parent
7125934418
commit
e0690d9678
2 changed files with 24 additions and 21 deletions
33
.travis.yml
33
.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
|
||||
|
|
|
|||
12
Makefile
12
Makefile
|
|
@ -89,18 +89,6 @@ devtest: build/.install.make_marker
|
|||
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
|
||||
@cat README.rst > build/.full_readme.rst
|
||||
@echo "\n" >> build/.full_readme.rst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue