language: python

python:
  - "2.7"

branches:
  only:
    - master
    - develop
    - travis


-before_install:
  - sudo apt-get -qq -y update

install:
  - sudo apt-get install -y git pylint pep8 python-nose python-coverage pyflakes python-nosexcover
  - pip install -r requirements.txt
  - pip install flake8
  - echo "Checking out test data at" `date`

before_script:
  - echo "Build starting on " `date`

script:
  - PYTHONPATH=`pwd`/reporter:`pwd`:$(PYTHONPATH) nosetests -v --with-id \
    --with-xcoverage --with-xunit --verbose --cover-package=reporter reporter

notifications:
  irc:
    channels:
      - "irc.freenode.org#kartoza"
    use_notice: true

  email:
    - tim@kartoza.com

language: python

python:
  - "2.7"

branches:
  only:
    - master
    - develop
    - travis


-before_install:
  - sudo apt-get -qq -y update

install:
  - sudo apt-get install -y git pylint pep8 python-nose python-coverage pyflakes python-nosexcover osm2pgsql
  - sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
  - sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
  - sudo apt-get update
  - sudo mkdir -p /var/lib/docker
  - echo exit 101 | sudo tee /usr/sbin/policy-rc.d
  - sudo chmod +x /usr/sbin/policy-rc.d
  - sudo apt-get install -y slirp lxc lxc-docker aufs-tools cgroup-lite
  - sudo docker pull kartoza/postgis

script:
  - ./linux quiet mem=2G rootfstype=hostfs rw eth0=slirp,,/usr/bin/slirp-fullbolt init=$(pwd)/uml.sh WORKDIR=$(pwd) HOME=$HOME
  - pip install -r requirements.txt
  - pip install flake8
  - echo "Checking out test data at" `date`

before_script:
  - echo "Build starting on " `date`

script:
  - PYTHONPATH=`pwd`/reporter:`pwd`:$(PYTHONPATH) nosetests -v --with-id \
    --with-xcoverage --with-xunit --verbose --cover-package=reporter reporter

notifications:
  irc:
    channels:
      - "irc.freenode.org#kartoza"
    use_notice: true

  email:
    - tim@kartoza.com

Install osm2pgsql and test deployment of docker
Install osm2pgsql and  test deployment of docker
