sudo: false

language: python

python:
 - "2.7"

addons:
  apt:
    packages:
    - parallel

install:
  - pip install futures
  - pip install http://ftp.openquake.org/python-wheels/numpy-1.8.2-cp27-none-linux_x86_64.whl
  - pip install http://ftp.openquake.org/python-wheels/scipy-0.16.0-cp27-none-linux_x86_64.whl
  - pip install http://ftp.openquake.org/python-wheels/Cython-0.22.1-cp27-none-linux_x86_64.whl
  - pip install http://ftp.openquake.org/python-wheels/Shapely-1.5.9-py2-none-any.whl
  - pip install http://ftp.openquake.org/python-wheels/h5py-2.2.1-cp27-none-linux_x86_64.whl
  - pip install https://github.com/gem/oq-hazardlib/archive/master.zip
  - python setup.py install

script:
  - PYTHONPATH=. nosetests -vsx -a'!slow' --with-xunit --nologcapture --with-doctest
  - # cd bin; python slowtests ../nosetests.xml

sudo: false

language: python

python:
 - "3.5"

addons:
  apt:
    packages:
    - wget

before_install:
  - wget http://ftp.openquake.org/travis/openquake-env-setup-py3-linux64.run

env:
    LD_LIBRARY_PATH=$HOME/openquake/lib
    PATH=$HOME/openquake/lib:$PATH

install:
  - ./openquake-env-setup-py3-linux64.run -- -d ~
  - pip install https://github.com/gem/oq-hazardlib/archive/python3.zip
  - pip install .

script:
  - nosetests -vsx -a'!slow' --with-xunit --nologcapture --with-doctest

Use our own python3 distribution to build on Travis
Use our own python3 distribution to build on Travis


Former-commit-id: ce9ba0e2424741079e3f36118866000aef0e998d [formerly ce9ba0e2424741079e3f36118866000aef0e998d [formerly 34bd03e337e7dccb3c9a08867d73adbf682cca3e]]
Former-commit-id: 0efc3e5a64500b498df4dd878aa209df29920265
Former-commit-id: b22172aebe5060bd420a21193cb94e835a0c9358