From 5f899c06cbc66956367ea45b5b9fda863b50c657 Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 21 Dec 2017 14:48:45 +0000 Subject: [PATCH] Update travis OSX build. --- .travis.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index db567f37..774f3901 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,26 +27,22 @@ script: - flake8 ssh2 jobs: include: - - os: osx + - stage: OSX wheel build + os: osx if: tag IS present - branches: - # Hopefully this will work in future. - only: - - master - - /^\d+\.\d+(\.\d+)?(-\S*)?$/ before_install: - brew update install: - brew install libssh2 - - pip install -U delocate twine wheel pip setuptools - - python setup.py bdist_wheel + - sudo pip2 install -U delocate twine wheel pip setuptools + - pip2 wheel . script: - - delocate-listdeps --all dist/*.whl - - delocate-wheel -v dist/*.whl - - delocate-listdeps --all dist/*.whl - - ls -l dist/ + - delocate-listdeps --all *.whl + - delocate-wheel -v *.whl + - delocate-listdeps --all *.whl + - ls -l *.whl - brew uninstall libssh2 - - pip install -v dist/*.whl + - pip2 install --user -v *.whl - pwd; mkdir temp; cd temp; pwd - python -c "from ssh2.session import Session; Session()" - cd ..; pwd