2018-09-25 22:01:03 +02:00
|
|
|
sudo: required
|
|
|
|
dist: xenial
|
|
|
|
language: python
|
|
|
|
python: "3.7"
|
|
|
|
|
2018-10-18 04:38:17 +02:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: code quality
|
|
|
|
name: "mypy"
|
|
|
|
before_install:
|
|
|
|
- pip install mypy lxml
|
|
|
|
- pip install -e .
|
2018-09-25 22:01:03 +02:00
|
|
|
|
2018-10-18 04:38:17 +02:00
|
|
|
script:
|
|
|
|
- mypy . --txt-report . --scripts-are-modules; cat index.txt; rm index.txt
|
2018-09-25 22:01:03 +02:00
|
|
|
|
2018-10-18 04:38:17 +02:00
|
|
|
- &tests
|
|
|
|
stage: test
|
|
|
|
name: "Unit Tests w/ Python 3.7"
|
|
|
|
before_install:
|
|
|
|
- pip install pylint coverage
|
|
|
|
- pip install -e .
|
|
|
|
|
|
|
|
script:
|
|
|
|
- HOME=/tmp coverage run --source=aioupnp -m unittest -v
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
|
|
|
- <<: *tests
|
|
|
|
name: "Unit Tests w/ Python 3.6"
|
|
|
|
python: "3.6"
|