Sergey Shepelev | 0112eff | 2017-05-05 06:46:43 +0300 | [diff] [blame] | 1 | language: python |
Michael Howitz | d26ed02 | 2018-12-01 08:23:50 +0100 | [diff] [blame] | 2 | dist: xenial |
Sergey Shepelev | 0112eff | 2017-05-05 06:46:43 +0300 | [diff] [blame] | 3 | |
Sergey Shepelev | 0112eff | 2017-05-05 06:46:43 +0300 | [diff] [blame] | 4 | cache: |
| 5 | apt: true |
| 6 | ccache: true |
| 7 | pip: true |
| 8 | directories: |
| 9 | - $HOME/.cache |
Sergey Shepelev | 0112eff | 2017-05-05 06:46:43 +0300 | [diff] [blame] | 10 | |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 11 | env: |
| 12 | global: |
| 13 | - pip_install_common='pip>=9.0 setuptools>=36.2 wheel>=0.30' |
| 14 | python: |
| 15 | - 2.7 |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 16 | - 3.4 |
| 17 | - 3.5 |
| 18 | - 3.6 |
Michael Howitz | d26ed02 | 2018-12-01 08:23:50 +0100 | [diff] [blame] | 19 | - 3.7 |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 20 | matrix: |
| 21 | fast_finish: true |
| 22 | install: pip install $pip_install_common 'codecov>=2.0.15' -r requirements-test.txt |
| 23 | script: script/test -sv && codecov |
| 24 | |
| 25 | stages: |
| 26 | - test |
| 27 | - release |
| 28 | jobs: |
| 29 | include: |
| 30 | - stage: test |
Michael Howitz | d26ed02 | 2018-12-01 08:23:50 +0100 | [diff] [blame] | 31 | python: pypy |
| 32 | dist: trusty |
| 33 | install: pip install $pip_install_common 'codecov>=2.0.15' -r requirements-test.txt |
| 34 | script: script/test -sv && codecov |
| 35 | - stage: test |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 36 | env: _=py2-pep8 |
| 37 | python: 2.7 |
| 38 | install: pip install -r requirements-test.txt |
| 39 | script: test_group=pep8 script/test |
| 40 | - stage: test |
| 41 | env: _=py3-pep8 |
| 42 | python: 3.6 |
| 43 | install: pip install -r requirements-test.txt |
| 44 | script: test_group=pep8 script/test |
| 45 | - stage: test |
| 46 | env: _=py2-package |
| 47 | python: 2.7 |
| 48 | install: pip install $pip_install_common |
| 49 | script: test_group=package script/test |
| 50 | - stage: test |
| 51 | env: _=py3-package |
| 52 | python: 3.6 |
| 53 | install: pip install $pip_install_common |
| 54 | script: test_group=package script/test |
| 55 | - stage: release |
Sergey Shepelev | df19c4b | 2018-03-30 05:07:11 +0300 | [diff] [blame] | 56 | if: (branch = master) |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 57 | env: _=pypi-upload-test |
| 58 | python: 3.6 |
| 59 | install: pip install $pip_install_common |
| 60 | script: script/release -auto |
| 61 | deploy: |
| 62 | provider: pypi |
| 63 | server: https://test.pypi.org/legacy/ |
| 64 | user: httplib2.release.test |
| 65 | password: |
| 66 | secure: "XN3oxobC+26UPiS+F1MvL4c6XtytejZ13SkLXCHfgVDPSASzKqF81CnR4EhsnbfZLvSgGHgSlfY5Jve5HF2VR9GzpJMc6wzcfkkeBg6PeRHuMppIqmuoq7BTw81SZL9X62/mju/vxXs2cHpVkwNTSE7W1JH1bVXPj86oAR9xXo9waRuXcyPGNuSqmOd1NPOMbFmeuz+HeArk2Fz7wwo6H5BJuXjOrEOHWD1rzeRchH901PBUrftm54Id2TIVMARW8jm1saQY2FtPWaBv2v/DJC1fKWMJpcNQ3mmcvrrTFC1IJ00dk9XJfqx5hnsRaergc0UvzHoOGEQKSMdg0PUAkvNohAoCf+3GddPkvk8MaZ+aQlijoK6wp93A5dfTxBVZqdhmEdheolbYiJPunzS60bWvaEv6/D15/xyMiwGamUmF1Tx7UIvvm/zj6tAOBWbNEgLRyvQ0qx2RE95GLtp+RXK4pT+Kig1+cof5hrWODuEl1SSLMBySaNLWO73IN9esZu0X1JS7svnROLRJCAvRjppJYswwCPziP+B8XQDeMrhIDMHNzdbtxOPpBAXpYUE764FkzaUTMsK83Q+ugE3Dx8xtrAzT4M0fdiFv+3QEhSUtfvWsLH9zS9wXC5Px9kPKU3FO8mdUyf7A0bIasvJLNcApDJigKjBukToOIsZVFok=" |
| 67 | # TODO: sdist bdist_wheel |
| 68 | # but wheels don't roll well with our 2/3 split code base |
| 69 | distributions: "sdist" |
| 70 | skip_cleanup: true |
| 71 | on: |
| 72 | repo: httplib2/httplib2 |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 73 | - stage: release |
Sergey Shepelev | df19c4b | 2018-03-30 05:07:11 +0300 | [diff] [blame] | 74 | if: (tag IS present) |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 75 | env: _=pypi-upload-public |
| 76 | python: 3.6 |
| 77 | install: pip install $pip_install_common |
| 78 | script: script/release -auto |
| 79 | deploy: |
| 80 | provider: pypi |
| 81 | user: httplib2.release |
| 82 | password: |
| 83 | secure: "jZAyMFnmbhYChjsb3gRYfESWlio6pgmWEWBRxtBQXYZf+tzyKVISyHuyWkJvOVTP+lOpp2MTPZ2s1UgxGwfzZ/VE034Cz5iA/C6wafmgtSW+wK+KEJFPseHBBA7Gh4ReiAPi2a+i1UXdsJpFNhv36E9tbTq2sEinbisE2lSEQ0KHadjkc+6pvCjlyhmes7QyM5GviWYlWRNj2OIkT8SUuUcWQt7ZEl6kN82MoMHCaf1YxE/i4JUP3VLomWK3RLZJP356Y4IDkzlVhFU4MJ4ubNtoQ/ECM0uQ+nsHzO0k1uGWdF6mMTna7U5gLqUi9rfCK3bLMeVSo+TUCpjI7HkWDaBgVXGTe5dUMJCDfRgqeYa0GnriI74XYJu8NGjMLv30uO58t9E7VQGo2NrFRJDzKAIHANejWnpUPY3XgoN1rlrh52seMjaU2+jO40EC8HvIqeRRwPwhkqCSV2y+IZT2bOFp2nbMWhkUMsxIX7OXt+sy8GvK/ilMleEl7r0tnudsT7lGdnMwXlttI3CIAFGE7E+0zwnxNiMzQDzo+ILVR7ezrCK9M9xVYKGa3i8gkpSn0Fblnltgg7HaEI8YC3rMZe4iu1t0D6cZZUAAp2ZUo3NCJcZ35iUFBhlFvjVDbe2upJgU6GFgtDLjyzCJiKbz8qLRgMFYgT0CGr512e1jBo0=" |
| 84 | # TODO: sdist bdist_wheel |
| 85 | # but wheels don't roll well with our 2/3 split code base |
| 86 | distributions: "sdist" |
| 87 | skip_cleanup: true |
| 88 | on: |
| 89 | repo: httplib2/httplib2 |
Sergey Shepelev | 013682e | 2018-03-28 15:28:11 +0300 | [diff] [blame] | 90 | tags: true |