machine:
  python:
    version: 2.7.10

dependencies:
  pre:
    - sudo apt-get update
    - sudo apt-get install osm2pgsql proj-data
    - sudo sh -c 'echo -e "# WGS 84 / Pseudo-Mercator\n<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs <>" >> /usr/share/proj/epsg'
    - pip install -Ur requirements.txt

test:
  override:
    - pip install -U flake8
    - find . -not -path '*/.eggs/*' -not -path '*/integration-test*' -not -path '*/data/*' -name '*.py' | xargs flake8
    - python setup.py install
    - python setup.py test
    - ./scripts/setup_and_run_tests.sh

machine:
  python:
    version: 2.7.10

dependencies:
  pre:
    - sudo add-apt-repository ppa:tilezen/ppa -y
    - sudo apt-get update
    - sudo apt-get install osm2pgsql proj-data
    - sudo sh -c 'echo -e "# WGS 84 / Pseudo-Mercator\n<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs <>" >> /usr/share/proj/epsg'
    - pip install -Ur requirements.txt

test:
  override:
    - pip install -U flake8
    - find . -not -path '*/.eggs/*' -not -path '*/integration-test*' -not -path '*/data/*' -name '*.py' | xargs flake8
    - python setup.py install
    - python setup.py test
    - ./scripts/setup_and_run_tests.sh

Use mz-integration branch of osm2pgsql from built packages in PPA.
Use mz-integration branch of osm2pgsql from built packages in PPA.
