Skip to content

Commit efee218

Browse files
author
Pan
committed
Added OSX binary wheel releases for all OSX versions on Travis-CI.
1 parent f05f391 commit efee218

File tree

1 file changed

+68
-18
lines changed

1 file changed

+68
-18
lines changed

.travis.yml

Lines changed: 68 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- brew install libssh2
4444
- sudo pip2 install -U delocate twine wheel pip setuptools
4545
- pip2 install --user -r requirements.txt
46-
- pip2 wheel .
46+
- pip2 wheel --no-deps .
4747
script:
4848
- delocate-listdeps --all *.whl
4949
- delocate-wheel -v *.whl
@@ -60,6 +60,63 @@ jobs:
6060
fi
6161
language: generic
6262
python: skip
63+
- stage: OSX wheel build
64+
os: osx
65+
osx_image: xcode8
66+
if: tag IS present
67+
before_install:
68+
- brew update
69+
install:
70+
- brew install libssh2
71+
- sudo pip2 install -U delocate twine wheel pip setuptools
72+
- pip2 install --user -r requirements.txt
73+
- pip2 wheel --no-deps .
74+
script:
75+
- delocate-listdeps --all *.whl
76+
- delocate-wheel -v *.whl
77+
- delocate-listdeps --all *.whl
78+
- ls -l *.whl
79+
- brew uninstall libssh2
80+
- pip2 install --user -v *.whl
81+
- pwd; mkdir temp; cd temp; pwd
82+
- python -c "import pssh.pssh2_client"
83+
- cd ..; pwd
84+
after_success:
85+
- if [[ ! -z "$TRAVIS_TAG" ]]; then
86+
twine upload -u $PYPI_U -p $PYPI_P *.whl;
87+
fi
88+
language: generic
89+
python: skip
90+
- stage: OSX wheel build
91+
os: osx
92+
osx_image: xcode6.4
93+
if: tag IS present
94+
before_install:
95+
- brew update
96+
install:
97+
- brew install libssh2
98+
- wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
99+
- sudo python get-pip.py
100+
- sudo pip install -U pip
101+
- sudo pip install -U delocate twine wheel pip setuptools
102+
- pip install --user -r requirements.txt
103+
- pip wheel --no-deps .
104+
script:
105+
- delocate-listdeps --all *.whl
106+
- delocate-wheel -v *.whl
107+
- delocate-listdeps --all *.whl
108+
- ls -l *.whl
109+
- brew uninstall libssh2
110+
- pip install --user -v *.whl
111+
- pwd; mkdir temp; cd temp; pwd
112+
- python -c "import pssh.pssh2_client"
113+
- cd ..; pwd
114+
after_success:
115+
- if [[ ! -z "$TRAVIS_TAG" ]]; then
116+
twine upload -u $PYPI_U -p $PYPI_P *.whl;
117+
fi
118+
language: generic
119+
python: skip
63120
# - os: linux
64121
# stage: build system packages
65122
# if: tag IS present
@@ -82,13 +139,20 @@ jobs:
82139
# on:
83140
# repo: ParallelSSH/parallel-ssh
84141
# tags: true
85-
- stage: deploy pypi sdist
142+
- stage: build and deploy source and wheels
86143
if: tag IS present
87144
os: linux
88145
python: 3.6
89146
before_install: skip
90-
install: skip
91-
script: skip
147+
install:
148+
- pip install twine
149+
script:
150+
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
151+
./ci/travis/build-manylinux.sh;
152+
after_success:
153+
- if [[ ! -z "$TRAVIS_TAG" ]]; then
154+
twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
155+
fi
92156
deploy:
93157
- provider: pypi
94158
user: pkittenis
@@ -100,17 +164,3 @@ jobs:
100164
distributions: sdist
101165
skip_upload_docs: true
102166
skip_cleanup: true
103-
- stage: build and deploy wheels
104-
if: tag IS present
105-
os: linux
106-
python: 3.6
107-
before_install: skip
108-
install:
109-
- pip install twine
110-
script:
111-
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
112-
./ci/travis/build-manylinux.sh;
113-
after_success:
114-
- if [[ ! -z "$TRAVIS_TAG" ]]; then
115-
twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
116-
fi

0 commit comments

Comments
 (0)