Browse Source

Configured pipeline for release new version.

hotfix/merge
Marcos Pereira 6 years ago
parent
commit
6a1ba7b427
  1. 1
      README.md
  2. 13
      bin/deploy.sh
  3. 15
      bitbucket-pipelines.yml

1
README.md

@ -51,6 +51,7 @@ The documentation for python-keycloak is available on [readthedocs](http://pytho
* [njordr](https://bitbucket.org/njordr/)
* [Josha Inglis](https://bitbucket.org/joshainglis/)
* [Alex](https://bitbucket.org/alex_zel/)
* [Ewan Jone](https://bitbucket.org/kisamoto/)
## Usage

13
bin/deploy.sh

@ -0,0 +1,13 @@
#!/usr/bin/env bash
cat << EOF > /root/.pypirc
[distutils]
index-servers=pypi
[pypi]
repository=https://upload.pypi.org/legacy/
username=${PYPI_USERNAME}
password=${PYPI_PASSWORD}
EOF
python setup.py sdist upload -r pypi

15
bitbucket-pipelines.yml

@ -1,8 +1,3 @@
# This is a sample build configuration for Python.
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: python:3.7
pipelines:
@ -11,6 +6,12 @@ pipelines:
name: Tests
caches:
- pip
script: # Modify the commands below to build your repository.
script:
- pip install -r requirements.txt
- python3 -m unittest discover
- python3 -m unittest discover
tags:
'*':
- step:
name: Release New Verison
script:
- ./bin/deploy.sh
Loading…
Cancel
Save