mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
travis experiment #7
This commit is contained in:
parent
162b567e84
commit
e9642ac3d9
3 changed files with 28 additions and 13 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -14,21 +14,11 @@ python:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install -y git mercurial
|
- sudo apt-get install -y git mercurial
|
||||||
- sudo bash build_wheel_on_travis.sh
|
- sudo bash travis_build_wheel.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install $(cat requirements-test.txt)
|
- pip install $(cat requirements-test.txt)
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- python --version
|
- python --version
|
||||||
- python -m flake8 src/pycalver/
|
- bash travis_run_tests.sh
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [ $(which python3.7) ]; then
|
set -e
|
||||||
|
|
||||||
|
if [[ $(which python3.7) ]]; then
|
||||||
python3.7 --version
|
python3.7 --version
|
||||||
else
|
else
|
||||||
curl -sSf -o python-3.7.tar.bz2 https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/16.04/x86_64/python-3.7.tar.bz2
|
curl -sSf -o python-3.7.tar.bz2 https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/16.04/x86_64/python-3.7.tar.bz2
|
||||||
23
travis_run_tests.sh
Normal file
23
travis_run_tests.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rst2html5 --strict README.rst > /dev/null
|
||||||
|
rst2html5 --strict CHANGELOG.rst > /dev/null
|
||||||
|
|
||||||
|
# first test module from installed wheel
|
||||||
|
python -m pip install $(ls -1t dist/pycalver*.whl | head -n 1)
|
||||||
|
grep 'coding: utf-8' $(python -c 'import pycalver;print(pycalver.__file__)')
|
||||||
|
python -m pytest --cov=pycalver test/
|
||||||
|
|
||||||
|
if [[ $(python -c "import sys;print(sys.version[:3])") == "3.7" ]]; then
|
||||||
|
python -m flake8 src/pycalver/
|
||||||
|
|
||||||
|
MYPYPATH=stubs/
|
||||||
|
python -m mypy src/pycalver/
|
||||||
|
|
||||||
|
# next test module from src/
|
||||||
|
PYTHONPATH=src/:$PYTHONPATH
|
||||||
|
python -m pytest --cov=pycalver test/
|
||||||
|
fi
|
||||||
|
|
||||||
|
codecov
|
||||||
Loading…
Add table
Add a link
Reference in a new issue