language: python
python: 2.7
addons:
  apt:
    packages:
    - libxml2-dev
    - libxslt1-dev
sudo: false

env:
  - PLONE_VERSION=4.2 TARGET=test
  - PLONE_VERSION=4.3 TARGET=test

before_install:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"

install:
  - sed -ie "s#travis-4.x.cfg#travis-$PLONE_VERSION.x.cfg#" travis.cfg
  - mkdir -p buildout-cache/eggs
  - mkdir -p buildout-cache/downloads
  - python bootstrap.py -c travis.cfg
  - bin/buildout -N -t 3 -c travis.cfg
  - bin/buildout -N -t 3 -c travis.cfg install omelette

script:
  - bin/test

after_success:
  - bin/createcoverage
  - pip install coveralls
  - coveralls
