language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"

sudo: required

addons:
  apt:
    sources:
    - sourceline: 'ppa:mosquitto-dev/mosquitto-ppa'
    - sourceline: 'deb http://packages.prosody.im/debian trusty main'
      key_url: 'https://prosody.im/files/prosody-debian-packages.key'
    packages:
    - mosquitto
    - zookeeperd
    - prosody-0.10
    - lua-bitop
    - lua-sec

services:
  - mosquitto
  - redis-server
  - zookeeper
  - prosody

install:
  - sudo prosodyctl register user1 localhost foobar
  - sudo prosodyctl register user2 localhost foobar
  - sudo prosodyctl restart
  - pip install nose coverage coveralls
  - pip install pytest>=2.7.3 --upgrade
  - pip install https://github.com/tcalmant/jsonrpclib/archive/master.zip
  - pip install paho-mqtt kazoo redis zeroconf sleekxmpp

script:
  - nosetests -v --with-coverage --cover-package=pelix tests

after_success:
  - coveralls

language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"

sudo: required

addons:
  apt:
    sources:
    - sourceline: 'ppa:mosquitto-dev/mosquitto-ppa'
    - sourceline: 'deb http://packages.prosody.im/debian trusty main'
      key_url: 'https://prosody.im/files/prosody-debian-packages.key'
    packages:
    - mosquitto
    - zookeeperd
    - prosody-0.10
    - lua-bitop
    - lua-sec

services:
  - mosquitto
  - redis-server
  - zookeeper
  - prosody

env:
  global:
    - COVERAGE_PROCESS_START=".coveragerc"

install:
  - sudo prosodyctl register user1 localhost foobar
  - sudo prosodyctl register user2 localhost foobar
  - sudo prosodyctl restart
  - pip install nose coverage coverage_enable_subprocess coveralls
  - pip install pytest>=2.7.3 --upgrade
  - pip install https://github.com/tcalmant/jsonrpclib/archive/master.zip
  - pip install paho-mqtt kazoo redis zeroconf sleekxmpp

script:
  - nosetests -v --with-coverage --cover-package=pelix tests

after_success:
  - coveralls

Use coverage_process_enable to add coverage in subprocesses
Use coverage_process_enable to add coverage in subprocesses
