notifications:
  email: false
  irc:
    channels:
      - "irc.mysociety.org#build"
    use_notice: true
    skip_join: true

services:
  - elasticsearch

language: python
python:
  - '2.7'
  - '3.4'
  - '3.5'
addons:
  postgresql: "9.1"

install:
  - sudo apt-get update -qq
  - sudo apt-get install python-virtualenv curl yui-compressor
  - gem install --no-ri --no-rdoc compass -v 0.12.7
  - gem install --no-ri --no-rdoc sass -v 3.2.19
  # Make sure pip is at the latest version:
  - pip install -U pip
  # Now install the rest of the required Python packages:
  - CFLAGS="-O0" pip install -r requirements.txt
  - pip install python-coveralls
  # Create a basic general.yml file:
  - sed -r
    -e "s,(YNMP_DB_USER:) .*,\\1 'postgres',"
    -e "s,(SECRET_KEY:) '',\\1 'notatallsecret',"
    conf/general.yml-example > conf/general.yml
  - ./manage.py compilemessages

script:
  - ./run-tests --coverage
after_success:
  - coveralls

sudo: false

notifications:
  email: false
  irc:
    channels:
      - "irc.mysociety.org#build"
    use_notice: true
    skip_join: true

services:
  - elasticsearch

language: python
python:
  - '2.7'
  - '3.4'
  - '3.5'
addons:
  postgresql: "9.1"

install:
  - gem install --no-ri --no-rdoc compass -v 0.12.7
  - gem install --no-ri --no-rdoc sass -v 3.2.19
  # Make sure pip is at the latest version:
  - pip install -U pip
  # Now install the rest of the required Python packages:
  - CFLAGS="-O0" pip install -r requirements.txt
  - pip install python-coveralls
  # Create a basic general.yml file:
  - sed -r
    -e "s,(YNMP_DB_USER:) .*,\\1 'postgres',"
    -e "s,(SECRET_KEY:) '',\\1 'notatallsecret',"
    conf/general.yml-example > conf/general.yml
  - ./manage.py compilemessages

script:
  - ./run-tests --coverage
after_success:
  - coveralls

Switch to using container-based builds on Travis
Switch to using container-based builds on Travis

If you add "sudo: false" (and remove uses of sudo) then Travis will use
its new container-based build infrastructure, which is much faster to
start builds.
