diff --git a/.travis.yml b/.travis.yml index 7bd8fa7..c68da13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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/ diff --git a/build_wheel_on_travis.sh b/build_wheel_on_travis.sh new file mode 100644 index 0000000..87efdac --- /dev/null +++ b/build_wheel_on_travis.sh @@ -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 diff --git a/setup_travis.sh b/setup_travis.sh deleted file mode 100644 index a40596f..0000000 --- a/setup_travis.sh +++ /dev/null @@ -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 -