travis experiment #11

This commit is contained in:
Manuel Barkhau 2018-09-05 20:38:50 +02:00
parent 225998de0f
commit 31ae8c21f4
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -e
echo "python3.7 path: $(which python3.7)"
if [[ $(which python3.7) ]]; then if [[ $(which python3.7) ]]; then
python3.7 --version python3.7 --version
else else
@ -12,5 +10,5 @@ else
fi fi
python3.7 --version python3.7 --version
python3.7 -m pip install lib3to6 python3.7 -m pip install setuptools lib3to6
python3.7 setup.py bdist_wheel --python-tag=py2.py3 python3.7 setup.py bdist_wheel --python-tag=py2.py3

View file

@ -1,13 +1,15 @@
#!/bin/bash #!/bin/bash
set -e set -e
# minimal test requirements for py27 testing
python -m pip install pytest rst2html5
rst2html5 --strict README.rst > /dev/null rst2html5 --strict README.rst > /dev/null
rst2html5 --strict CHANGELOG.rst > /dev/null rst2html5 --strict CHANGELOG.rst > /dev/null
# first test module from installed wheel # first test module from installed wheel
python -m pip install $(ls -1t dist/pycalver*.whl | head -n 1) python -m pip install $(ls -1t dist/pycalver*.whl | head -n 1)
grep 'coding: utf-8' $(python -c 'import pycalver;print(pycalver.__file__)') grep 'coding: utf-8' $(python -c 'import pycalver;print(pycalver.__file__)')
python -m pip install pytest
python -m pytest test/ python -m pytest test/
if [[ $(python -c "import sys;print(sys.version[:3])") == "3.7" ]]; then if [[ $(python -c "import sys;print(sys.version[:3])") == "3.7" ]]; then