diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bef1af..7f40bc4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -185,6 +185,31 @@ jobs: path: test-reports destination: test-reports + deploy: + executor: + name: python + tag: 3.5.5-stretch + steps: + - checkout + - docker-prereqs + - install + + - run: + name: verify release okey + command: | + script/check_release + - run: + name: init .pypirc + command: | + echo -e "[pypi]" >> ~/.pypirc + echo -e "username = maxandersen" >> ~/.pypirc + echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc + echo -e "repository = https://test.pypi.org/legacy" >> ~/.pypirc + - run: + name: do release + command: | + script/release + workflows: version: 2 build: @@ -230,3 +255,16 @@ workflows: # - test: # name: test 3.8 # python: 3.8-rc-stretch + - deploy: + requires: + - test 3.6 + - pylint + - test 3.5.5 + - test 3.7 + filters: + tags: + only: /[0-9]+(\.[0-9]+)*/ + branches: + only: + - dev + diff --git a/README.rst b/README.rst index 313ef13..ffad4d7 100644 --- a/README.rst +++ b/README.rst @@ -500,8 +500,8 @@ after this you should be able to edit the source code and running `hass-cli` dir $ hass-cli -.. |Build Status| image:: https://travis-ci.com/home-assistant/home-assistant-cli.svg?branch=dev - :target: https://travis-ci.com/home-assistant/home-assistant-cli +.. |Build Status| image:: https://circleci.com/gh/home-assistant/home-assistant-cli/tree/dev.svg?style=svg + :target: https://circleci.com/gh/home-assistant/home-assistant-cli/tree/dev .. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg :target: https://discord.gg/c5DvZ4e