3
3
- pip
4
4
- directories :
5
5
- " $HOME/.pyenv"
6
+ - " $HOME/Library/Caches/Homebrew"
6
7
notifications :
7
8
email : false
8
9
sudo : required
@@ -26,7 +27,7 @@ install:
26
27
- python setup.py build_ext --inplace
27
28
- eval "$(ssh-agent -s)"
28
29
script :
29
- - nosetests
30
+ - pytest tests
30
31
- flake8 ssh2
31
32
# Test source distribution builds
32
33
- python setup.py sdist
@@ -44,12 +45,14 @@ jobs:
44
45
- &osx-wheels
45
46
stage : build packages
46
47
os : osx
47
- osx_image : xcode8
48
+ osx_image : xcode9.2
48
49
env :
49
- - PYENV : 3.6.4
50
50
- SYSTEM_LIBSSH2 : 1
51
+ before_cache :
52
+ - brew cleanup
51
53
before_install :
52
54
- brew update
55
+ - brew install ccache
53
56
- brew outdated openssl || travis_wait brew upgrade openssl || echo "y"
54
57
- brew link --overwrite python@2 || brew install python@2 || brew link --overwrite python@2
55
58
- which python2
74
77
- python -c "from ssh2.session import Session; Session()"
75
78
- cd ..; pwd
76
79
- mv -f *.whl wheels/
77
- - travis_wait ./ci/travis/pyenv-wheel.sh
78
80
after_success :
79
81
- if [[ ! -z "$TRAVIS_TAG" ]]; then
80
82
twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheels/*.whl;
@@ -86,12 +88,18 @@ jobs:
86
88
osx_image : xcode9.2
87
89
88
90
- << : *osx-wheels
89
- osx_image : xcode9.4
91
+ osx_image : xcode9.2
92
+ env :
93
+ - PYENV : 3.6.4
94
+ - SYSTEM_LIBSSH2 : 1
95
+ install : skip
96
+ script :
97
+ - travis_wait ./ci/travis/pyenv-wheel.sh
90
98
91
99
- << : *osx-wheels
92
- osx_image : xcode8
100
+ osx_image : xcode9.4
93
101
env :
94
- - PYENV : 3.7.0
102
+ - PYENV : 3.6.4
95
103
- SYSTEM_LIBSSH2 : 1
96
104
install : skip
97
105
script :
@@ -115,28 +123,6 @@ jobs:
115
123
script :
116
124
- travis_wait ./ci/travis/pyenv-wheel.sh
117
125
118
- - stage : build packages
119
- env :
120
- - SYSTEM_PACKAGES=1
121
- os : linux
122
- language : generic
123
- python : skip
124
- install : skip
125
- script :
126
- - docker --version
127
- - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
128
- - ./ci/docker/build-packages.sh
129
- deploy :
130
- - provider : releases
131
- skip_cleanup : true
132
- api_key :
133
- secure : i1Dr0k393wXBsCKST5ckeTPdZT+hjkikHCGgMSEkJxw+Q8m/Sgq9bbBalkJZDZDc8t0a/nE4ioEXoYO+PT9wRSpjLbjDVwRoWde5PVHaR3JviiwxULEynFLbvdJ1S2O/zRM37YMVgIIXN/2SWSXvQcQznrrvjtBoV+nZfYHX2WZQruq1nQXcPvTJPeZtCBsWaA3TwbVobnOJdb3TFxnHybN3N4gCTOkurek0V7OSMpjd1qgSzNMDIhjXKf/ZB9bcuusXo2QSnzUDJo3S6QE4FBxKohVom7z4AQ8+iRVPkkrWezBo089vzPzfZN/C5+8xQAUfZ6bVNdS6DfI80+55s6Xj7BFEKQW9Kh3Em0GpipHxdxiBf176xktY9EROkDkwDHlsbE7JRRQUmfmJe+0yCo+gg9uAsz5XHNrQgU5BxKhVzggMA/VU+clJ51WfbYGJAvVs/NjHQb/A9CzYKdBamUvy3YY2dxLbdohR7TZMM0JWYmZcmSiaOiZxrCT3ThlQ/J9o9r6TFWvkVjvt+ozABsx0OvtNrdkp7VvFbSQGvmTzGnPM2O5xqzWrM73Z7g8Ahw1g08FDN0JAO8n/Y0tb/xpVAFBmkQTJpQk7f4kQAHWlZKEYN2wEnX+hptjXfDjMYGX9Tc5vdDQJ3oTxnCt+y7Vl9IplT0a5GTTE0l8Pyc4=
134
- file_glob : true
135
- file : ' *.{deb,rpm}'
136
- on :
137
- repo : ParallelSSH/ssh2-python
138
- tags : true
139
-
140
126
- stage : build packages
141
127
os : linux
142
128
python : 3.6
@@ -145,7 +131,7 @@ jobs:
145
131
install :
146
132
- pip install twine
147
133
script :
148
- - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
134
+ - if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; fi
149
135
- ./ci/travis/build-manylinux.sh
150
136
after_success :
151
137
- if [[ ! -z "$TRAVIS_TAG" ]]; then
0 commit comments