language: python

before_script:
  - "rm $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt"

install:
  - "wget -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -"
  - "sudo wget -O /etc/apt/sources.list.d/mopidy.list http://apt.mopidy.com/mopidy.list"
  - "sudo apt-get update || yes"
  - "sudo apt-get install mopidy"
  - "sudo pip install --allow-unverified=mopidy coveralls mopidy==dev evdev python-uinput"

script:
  - "nosetests --with-coverage --cover-package=mopidy_evtdev"

after_success:
  - "coveralls"

language: python

before_script:
  - "rm $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt"

install:
  - "wget -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -"
  - "sudo wget -O /etc/apt/sources.list.d/mopidy.list http://apt.mopidy.com/mopidy.list"
  - "sudo apt-get update || yes"
  - "sudo apt-get install mopidy"
  - "sudo pip install --allow-unverified=mopidy coveralls mopidy==dev evdev python-uinput"

script:
  - "sudo nosetests --with-coverage --cover-package=mopidy_evtdev"

after_success:
  - "coveralls"

Test must be run with sudo.
Test must be run with sudo.
