Skip to content

Commit

Permalink
update travis with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
kidig committed Nov 22, 2016
1 parent 2d6d63b commit 82cc2dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source=happymailer
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ env:
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- npm install -g mjml
- pip install tox-travis
- pip install tox-travis coveralls

script: tox
script:
- tox

after_success:
- bash <(curl -s https://codecov.io/bash)
- test $TRAVIS_PYTHON_VERSION = "3.5" && coveralls
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
envlist = py{34,35}

[testenv]
commands = {envpython} manage.py test --no-input
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
colorlog
commands =
{envpython} manage.py test --no-input

[testenv:py35]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
Expand All @@ -14,5 +16,4 @@ deps =
coveralls
commands =
coverage run --source=happymailer manage.py test --no-input
coverage combine
coveralls

0 comments on commit 82cc2dd

Please sign in to comment.