|
19 | 19 | LIBGIT2_VERSION: "0.27"
|
20 | 20 |
|
21 | 21 |
|
22 |
| -.mixins: |
23 |
| -- &docker-job |
24 |
| - stage: Publish to PyPI (runs only for tagged commits) |
25 |
| - python: "3.7" |
26 |
| - services: |
27 |
| - - docker |
28 |
| - env: |
29 |
| - # DOCKER_IMAGE: quay.io/pypa/manylinux1_x86_64 |
30 |
| - DOCKER_IMAGE: pyca/cryptography-manylinux1:x86_64 |
31 |
| - install: skip |
32 |
| - script: &docker-script |
33 |
| - - docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-manylinux1-wheels.sh pygit2 "${LIBGIT2_VERSION}" |
34 |
| - - ls wheelhouse/ |
35 |
| - before_deploy: |
36 |
| - - mv wheelhouse dist |
37 |
| - - pip install twine |
38 |
| - - twine check dist/* |
39 |
| - deploy: |
40 |
| - provider: pypi |
41 |
| - # `skip-cleanup: true` is required to preserve binary wheels, built |
42 |
| - # inside of manylinux1 docker container during `script` step above. |
43 |
| - skip-cleanup: true |
44 |
| - # `skip-existing: true` is required to skip uploading dists, already |
45 |
| - # present in PYPI instead of failing the whole process. |
46 |
| - # This happens when other CI (AppVeyor etc.) has already uploaded |
47 |
| - # the very same dist (usually sdist). |
48 |
| - skip-existing: true |
49 |
| - user: jdavid |
50 |
| - password: |
51 |
| - # Encrypted with `travis encrypt -r aio-libs/aiohttp --api-endpoint 'https://api.travis-ci.com/'`: |
52 |
| - secure: >- |
53 |
| - TODO: REPLACE THIS WITH AN ENCRYPTED PASSWORD |
54 |
| - # Although Travis CI instructs `setup.py` to build source distribution, |
55 |
| - # which is default value for distribution option (`distribution: sdist`), |
56 |
| - # it will also upload all wheels we've previously built in manylinux1 |
57 |
| - # docker container using `twine upload -r pypi dist/*` command. |
58 |
| - # Also since commit https://github.com/travis-ci/dpl/commit/90b5e39 |
59 |
| - # it is default that Travis PYPI provider has `skip_upload_docs: true` |
60 |
| - # set by default. |
61 |
| - # Besides above, we don't do cleanup of `dist/*`, because it's being done |
62 |
| - # by Travis CI PYPI deployment provider after upload, unconditionally. |
63 |
| - on: |
64 |
| - tags: true |
65 |
| - all_branches: true |
66 |
| - |
67 |
| - |
68 | 22 | jobs:
|
69 | 23 | include:
|
70 |
| - - <<: *docker-job |
71 |
| - name: >- |
72 |
| - manylinux1: 64-bit |
73 |
| - - <<: *docker-job |
| 24 | + - stage: Publish to PyPI (runs only for tagged commits) |
74 | 25 | name: >-
|
75 |
| - manylinux1: 32-bit |
76 |
| - env: |
77 |
| - # DOCKER_IMAGE: quay.io/pypa/manylinux1_i686 |
78 |
| - DOCKER_IMAGE: pyca/cryptography-manylinux1:i686 |
79 |
| - PRE_CMD: linux32 |
| 26 | + OS-specific manylinux1 wheels |
| 27 | + python: "3.7" |
| 28 | + services: |
| 29 | + - docker |
| 30 | + install: skip |
| 31 | + script: &docker-script |
| 32 | + - travis/build-all-manylinux1-wheels.sh "pygit2" "${LIBGIT2_VERSION}" |
| 33 | + before_deploy: |
| 34 | + - mv wheelhouse dist |
| 35 | + - ls dist |
| 36 | + - pip install twine |
| 37 | + - twine check dist/* |
| 38 | + deploy: |
| 39 | + provider: pypi |
| 40 | + # `skip-cleanup: true` is required to preserve binary wheels, built |
| 41 | + # inside of manylinux1 docker container during `script` step above. |
| 42 | + skip-cleanup: true |
| 43 | + # `skip-existing: true` is required to skip uploading dists, already |
| 44 | + # present in PYPI instead of failing the whole process. |
| 45 | + # This happens when other CI (AppVeyor etc.) has already uploaded |
| 46 | + # the very same dist (usually sdist). |
| 47 | + skip-existing: true |
| 48 | + user: jdavid |
| 49 | + password: |
| 50 | + # Encrypted with `travis encrypt -r aio-libs/aiohttp --api-endpoint 'https://api.travis-ci.com/'`: |
| 51 | + secure: >- |
| 52 | + TODO: REPLACE THIS WITH AN ENCRYPTED PASSWORD |
| 53 | + # Although Travis CI instructs `setup.py` to build source distribution, |
| 54 | + # which is default value for distribution option (`distribution: sdist`), |
| 55 | + # it will also upload all wheels we've previously built in manylinux1 |
| 56 | + # docker container using `twine upload -r pypi dist/*` command. |
| 57 | + # Also since commit https://github.com/travis-ci/dpl/commit/90b5e39 |
| 58 | + # it is default that Travis PYPI provider has `skip_upload_docs: true` |
| 59 | + # set by default. |
| 60 | + # Besides above, we don't do cleanup of `dist/*`, because it's being done |
| 61 | + # by Travis CI PYPI deployment provider after upload, unconditionally. |
| 62 | + on: |
| 63 | + tags: true |
| 64 | + all_branches: true |
80 | 65 |
|
81 | 66 |
|
82 | 67 | before_install:
|
|
0 commit comments