Skip to content

Commit

Permalink
Added OSX binary wheel releases for all OSX versions on Travis-CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Jan 3, 2018
1 parent f05f391 commit efee218
Showing 1 changed file with 68 additions and 18 deletions.
86 changes: 68 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- brew install libssh2
- sudo pip2 install -U delocate twine wheel pip setuptools
- pip2 install --user -r requirements.txt
- pip2 wheel .
- pip2 wheel --no-deps .
script:
- delocate-listdeps --all *.whl
- delocate-wheel -v *.whl
Expand All @@ -60,6 +60,63 @@ jobs:
fi
language: generic
python: skip
- stage: OSX 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 install --user -r requirements.txt
- pip2 wheel --no-deps .
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 "import pssh.pssh2_client"
- 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 wheel build
os: osx
osx_image: xcode6.4
if: tag IS present
before_install:
- brew update
install:
- brew install libssh2
- 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 pip setuptools
- pip install --user -r requirements.txt
- pip wheel --no-deps .
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 "import pssh.pssh2_client"
- cd ..; pwd
after_success:
- if [[ ! -z "$TRAVIS_TAG" ]]; then
twine upload -u $PYPI_U -p $PYPI_P *.whl;
fi
language: generic
python: skip
# - os: linux
# stage: build system packages
# if: tag IS present
Expand All @@ -82,13 +139,20 @@ jobs:
# on:
# repo: ParallelSSH/parallel-ssh
# tags: true
- stage: deploy pypi sdist
- stage: build and deploy source and wheels
if: tag IS present
os: linux
python: 3.6
before_install: skip
install: skip
script: skip
install:
- pip install twine
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
./ci/travis/build-manylinux.sh;
after_success:
- if [[ ! -z "$TRAVIS_TAG" ]]; then
twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
fi
deploy:
- provider: pypi
user: pkittenis
Expand All @@ -100,17 +164,3 @@ jobs:
distributions: sdist
skip_upload_docs: true
skip_cleanup: true
- stage: build and deploy wheels
if: tag IS present
os: linux
python: 3.6
before_install: skip
install:
- pip install twine
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
./ci/travis/build-manylinux.sh;
after_success:
- if [[ ! -z "$TRAVIS_TAG" ]]; then
twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
fi

0 comments on commit efee218

Please sign in to comment.