Skip to content

Commit

Permalink
Add coverage support
Browse files Browse the repository at this point in the history
 * Use Coverage and its py.test plugin
 * http://coverall.io integration
  • Loading branch information
declension committed Apr 23, 2017
1 parent 0451dd3 commit 3ba0fc1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ matrix:
- python: 2.7
env: TOXENV=style

install: pip install tox
install: pip install tox coveralls

script: tox

cache:
directories:
- $HOME/.cache/pip

after_success:
- coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ squeeze-alexa

[![Join the chat at https://gitter.im/squeeze-alexa/Lobby](https://badges.gitter.im/squeeze-alexa/Lobby.svg)](https://gitter.im/squeeze-alexa/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/declension/squeeze-alexa.svg?branch=master)](https://travis-ci.org/declension/squeeze-alexa)
[![Coverage Status](https://coveralls.io/repos/github/declension/squeeze-alexa/badge.svg?branch=master)](https://coveralls.io/github/declension/squeeze-alexa?branch=master)

`squeeze-alexa` is an Amazon Alexa Skill integrating with the Logitech Media Server ("squeezebox"). See the original [announcement blog post](http://declension.net/posts/2016-11-30-alexa-meets-squeezebox/), and the [follow-up with videos](http://declension.net/posts/2017-01-03-squeeze-alexa-demos/).

Expand Down
2 changes: 1 addition & 1 deletion docs/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Set up your Alexa Skill
### Add a new ASK Custom Skill in your developer account
* Like most useful skills it should be a [Custom Skill](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/overviews/understanding-custom-skills)
* Follow one of the guides ideally e.g. [Deploying a Sample Custom Skill To AWS Lambda](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/deploying-a-sample-skill-to-aws-lambda#creating-the-lambda-function-for-the-sample).
* Needs to be Python (2.7) runtime
* Needs to be Python (2.7) runtime. **UPDATE:** Python 3.6 is now supported too, though untested.
* Choose your own Invocation Name. The advantage of not needing certification is you can be "more creative" about your naming...
* Select an AWS region close to you
* _Recommended_: Select _yes_ for Audio Streaming API
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ deps = -rrequirements.txt

[testenv]
deps=pytest
-rrequirements.txt
pytest-cov
pytest
coverage
-rrequirements.txt
commands =
py.test -v tests
py.test -v --cov=squeezealexa --cov-report=term tests
setenv =
PYTHONPATH = {toxinidir}

Expand Down

0 comments on commit 3ba0fc1

Please sign in to comment.