From b995bf98d29353ceaf6a7e08fa0f5dfe26d3eaad Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 2 Jan 2018 20:27:12 +0100 Subject: [PATCH] Added OSX wheel builds for all OSX versions on Travis-CI. --- .travis.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7a6763de..bc20d952 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ script: - cd dist; pip install *; cd .. jobs: include: - - stage: OSX wheel build + - stage: OSX 10.12 wheel build os: osx if: tag IS present before_install: @@ -54,6 +54,62 @@ jobs: fi language: generic python: skip + - stage: OSX 10.11 wheel build + os: osx + osx_image: xcode8 + if: tag IS present + before_install: + - brew update + install: + - brew install libssh2 + - sudo pip2 install -U delocate twine wheel pip setuptools + - pip2 wheel . + script: + - delocate-listdeps --all *.whl + - delocate-wheel -v *.whl + - delocate-listdeps --all *.whl + - ls -l *.whl + - brew uninstall libssh2 + - pip2 install --user -v *.whl + - pwd; mkdir temp; cd temp; pwd + - python -c "from ssh2.session import Session; Session()" + - cd ..; pwd + after_success: + - if [[ ! -z "$TRAVIS_TAG" ]]; then + twine upload -u $PYPI_U -p $PYPI_P *.whl; + fi + language: generic + python: skip + - stage: OSX 10.10 wheel build + os: osx + osx_image: xcode6.4 + if: tag IS present + before_install: + - brew update + install: + - brew install libssh2 + - python --version + - wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py + - sudo python get-pip.py + - sudo pip install -U pip + - sudo pip install -U delocate twine wheel setuptools + - pip wheel . + script: + - delocate-listdeps --all *.whl + - delocate-wheel -v *.whl + - delocate-listdeps --all *.whl + - ls -l *.whl + - brew uninstall libssh2 + - pip install --user -v *.whl + - pwd; mkdir temp; cd temp; pwd + - python -c "from ssh2.session import Session; Session()" + - cd ..; pwd + after_success: + - if [[ ! -z "$TRAVIS_TAG" ]]; then + twine upload -u $PYPI_U -p $PYPI_P *.whl; + fi + language: generic + python: skip # - stage: build_packages # if: tag IS present # os: linux