Skip to content

Commit a5e7427

Browse files
maxandersenfabaff
authored andcommitted
fix(build): try make releases to testpypi work (#247)
1 parent 39c6207 commit a5e7427

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,31 @@ jobs:
185185
path: test-reports
186186
destination: test-reports
187187

188+
deploy:
189+
executor:
190+
name: python
191+
tag: 3.5.5-stretch
192+
steps:
193+
- checkout
194+
- docker-prereqs
195+
- install
196+
197+
- run:
198+
name: verify release okey
199+
command: |
200+
script/check_release
201+
- run:
202+
name: init .pypirc
203+
command: |
204+
echo -e "[pypi]" >> ~/.pypirc
205+
echo -e "username = maxandersen" >> ~/.pypirc
206+
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
207+
echo -e "repository = https://test.pypi.org/legacy" >> ~/.pypirc
208+
- run:
209+
name: do release
210+
command: |
211+
script/release
212+
188213
workflows:
189214
version: 2
190215
build:
@@ -230,3 +255,16 @@ workflows:
230255
# - test:
231256
# name: test 3.8
232257
# python: 3.8-rc-stretch
258+
- deploy:
259+
requires:
260+
- test 3.6
261+
- pylint
262+
- test 3.5.5
263+
- test 3.7
264+
filters:
265+
tags:
266+
only: /[0-9]+(\.[0-9]+)*/
267+
branches:
268+
only:
269+
- dev
270+

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ after this you should be able to edit the source code and running `hass-cli` dir
500500
$ hass-cli
501501
502502
503-
.. |Build Status| image:: https://travis-ci.com/home-assistant/home-assistant-cli.svg?branch=dev
504-
:target: https://travis-ci.com/home-assistant/home-assistant-cli
503+
.. |Build Status| image:: https://circleci.com/gh/home-assistant/home-assistant-cli/tree/dev.svg?style=svg
504+
:target: https://circleci.com/gh/home-assistant/home-assistant-cli/tree/dev
505505
506506
.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
507507
:target: https://discord.gg/c5DvZ4e

0 commit comments

Comments
 (0)