-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pypi to travis-ci providers for python bindings. Only the first x86
Linux build will push to pypi on tagged commits. Signed-off-by: Travis F. Collins <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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: | ||
|
@@ -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 |