language: python
python:
    - 2.6
    - 2.7
    - pypy
install:
    - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors unittest2; fi
    - apt-get -y install libev
    - pip install --use-mirrors -r test-requirements.pip
services:
  - rabbitmq
script: nosetests -c nose.cfg

language: python
python:
    - 2.6
    - 2.7
    - pypy
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y libev
install:
    - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors unittest2; fi
    - pip install --use-mirrors -r test-requirements.pip
services:
  - rabbitmq
script: nosetests -c nose.cfg

Move the libev install to before_install
Move the libev install to before_install
