Attempt at running on travis-ci.

- Installs our apt-repo to worker.
- Installs all mopidy deps listed in apt.
- Runs our tests with site-packages, thus we can only test the main python
  verision travis uses.
This commit is contained in:
Thomas Adamcik 2012-09-04 23:30:59 +02:00
parent 5258dddb89
commit 4b1595ce97

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: python
install:
- "wget -q -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -"
- "sudo wget -q -O /etc/apt/sources.list.d/mopidy.list http://apt.mopidy.com/mopidy.list"
- "sudo apt-get update"
- "sudo apt-get install $(apt-cache depends mopidy | awk '$2 !~ /mopidy/ {print $2}')"
before_script:
- "rm $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt"
script: nosetests