travis experiment #6

This commit is contained in:
Manuel Barkhau 2018-09-05 09:37:37 +02:00
parent 7b372b87b8
commit 162b567e84
3 changed files with 13 additions and 22 deletions

View file

@ -14,17 +14,13 @@ python:
before_install:
- sudo apt-get install -y git mercurial
- sudo bash setup_travis.sh
- sudo bash build_wheel_on_travis.sh
install:
- pip install $(cat requirements-test.txt)
- python3.7 -m pip install lib3to6
- python3.7 setup.py bdist_wheel --python-tag=py2.py3
script:
- python --version
- python3.7 --version
- python -m flake8 src/pycalver/
- export MYPYPATH=stubs/

12
build_wheel_on_travis.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
if [ $(which python3.7) ]; then
python3.7 --version
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
tar xjf python-3.7.tar.bz2 --directory /
source $HOME/virtualenv/python3.7.0/bin/activate
fi
python3.7 --version
python3.7 -m pip install lib3to6
python3.7 setup.py bdist_wheel --python-tag=py2.py3

View file

@ -1,17 +0,0 @@
#!/bin/bash
if [ $(which python3.7) ]; then
echo "installed"
exit 0
fi
echo $PAtH
echo "installing"
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
tar xjf python-3.7.tar.bz2 --verbose --directory /
ls -l /home/travis/virtualenv/
which python3.7
python --version
# ln -s /home/travis/virtualenv/python3.7.0/bin/python