summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2020-10-05 17:36:46 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2020-10-05 17:36:59 +0300
commit1e38743cb997b1e4acca706196812f2e6b1240fd (patch)
treee52ce8b9bcc17ac7c0ab2e9af8155237870d43ef
parenta0fd030069c3bb1233c27de4ffa48adcf9d78b41 (diff)
downloadpysaml2-1e38743cb997b1e4acca706196812f2e6b1240fd.tar.gz
Push pre-releases to test.pypi for every push on master
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r--.travis.yml28
1 files changed, 22 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 9f36fc8a..7ae396ac 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -57,17 +57,21 @@ jobs:
TRAVIS_PULL_REQUEST_SLUG: $TRAVIS_PULL_REQUEST_SLUG
EOF
- - stage: Deploy new release on GitHub
- if: type = push AND tag IS present
+ - stage: Deploy new pre-release on PyPI
+ if: type = push
before_install: skip
install: skip
- script: skip
+ script:
+ - read -r CURRENT_VERSION <VERSION
+ - printf -- '%s-%s\n' "${CURRENT_VERSION}" "${TRAVIS_BUILD_NUMBER}" >VERSION
deploy:
- - provider: releases
- token: "$GITHUB_RELEASE_TOKEN"
+ - provider: pypi
+ distributions: sdist bdist_wheel
+ server: "https://test.pypi.org/legacy/"
+ username: "__token__"
+ password: "$PYPI_PRE_RELEASE_TOKEN"
on:
repo: IdentityPython/pysaml2
- tags: true
- stage: Deploy new release on PyPI
if: type = push AND tag IS present
@@ -82,3 +86,15 @@ jobs:
on:
repo: IdentityPython/pysaml2
tags: true
+
+ - stage: Deploy new release on GitHub
+ if: type = push AND tag IS present
+ before_install: skip
+ install: skip
+ script: skip
+ deploy:
+ - provider: releases
+ token: "$GITHUB_RELEASE_TOKEN"
+ on:
+ repo: IdentityPython/pysaml2
+ tags: true