Skip to content

Commit

Permalink
Switch to jobs matrix and add deploy stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Jan 4, 2020
1 parent 84bce74 commit 409c6a5
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
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

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

0 comments on commit 409c6a5

Please sign in to comment.