diff --git a/.travis.yml b/.travis.yml index 73302c5..ed7e902 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,6 @@ dist: xenial language: python -matrix: - fast_finish: true - include: - - python: "3.6" - - python: "3.7" - - python: "3.8" - install: - pip install -e . - pip install pytest pytest-cov codecov @@ -15,3 +8,21 @@ install: script: pytest opsdroid_homeassistant --cov --cov-report term after_success: codecov + +jobs: + fast_finish: true + include: + - python: "3.6" + - python: "3.7" + - python: "3.8" + - stage: deploy + script: skip # usually you do not want to rerun any tests + python: "3.7" + deploy: + provider: pypi + user: $PYPI_USER + password: $PYPI_PASSWORD + skip_cleanup: true + on: + tags: true + repo: opsdroid/opsdroid-homeassistant