Skip to content

Commit

Permalink
Add pypi to travis-ci providers for python bindings. Only the first x86
Browse files Browse the repository at this point in the history
Linux build will push to pypi on tagged commits.

Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Feb 14, 2020
1 parent 21023a5 commit 71cc9cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ matrix:
# TODO do `check` or `check_hw` here too, not just `check_sw` (as part of `coverage`)
- CHECK_RULE=coverage GCOV=1
- PKG_RULE=gzip
- PYPI=yes
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
- COVERITY_SCAN_BRANCH_PATTERN="master"
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]"
Expand Down Expand Up @@ -114,6 +115,7 @@ before_deploy:
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy.rsa
- ssh-add /tmp/deploy.rsa
- if [[ "$PYPI" == "yes" ]]; then cd "build/bindings/python"; fi
deploy:
- provider: releases
api_key:
Expand Down Expand Up @@ -152,6 +154,16 @@ deploy:
on:
condition: "$TRAVIS_OS_NAME = osx"
all_branches: true
- provider: pypi
if: tag IS present
skip_cleanup: true
on:
tags: true
condition: "$PYPI = yes"
username: __token__
password:
secure: KfORvnPyLlMANLpcwJjcO44Kt6meP614omJk2GloD+B51SuV64O6N31VDOTi2xqioEk9Cajq7tmNte5YoHVUjL9iWFsBblpzxZoXcy40dn4pFN0kMiE8scszxckbDwuBZhokUVZ2fhfLKf/8xORcwjS3vKqSj5HwQKKvVgukSbQ=
distributions: sdist

after_deploy:
- ${TRAVIS_BUILD_DIR}/CI/travis/after_deploy

0 comments on commit 71cc9cb

Please sign in to comment.