sudo: false

# We are using our own python
language: c

addons:
  apt:
    packages:
    - wget

before_install:
  - wget http://ftp.openquake.org/travis/openquake-env-setup-py3-precise64.run
  - chmod +x openquake-env-setup-py3-precise64.run

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

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

# We must set the PYTHONPATH to the root oq-engine (insted of oq-engine/openquake) because otherwise
# the full 'openquake' namespace is overwritten and then hazardlib and baselib are not found
script:
  # FIXME --with-doctest does not work
  - PYTHONPATH=. nosetests -vsx -a'!slow' --with-xunit --nologcapture

sudo: false

# We are using our own python
language: c

addons:
  apt:
    packages:
    - wget

before_install:
  - wget http://ftp.openquake.org/travis/openquake-env-setup-py3-precise64.run
  - chmod +x openquake-env-setup-py3-precise64.run

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

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

# We must set the PYTHONPATH to the root oq-engine (insted of oq-engine/openquake) because otherwise
# the full 'openquake' namespace is overwritten and then hazardlib and baselib are not found
script:
  # FIXME --with-doctest does not work
  # - PYTHONPATH=. nosetests -vsx -a'!slow' --with-xunit --nologcapture
  - PYTHONPATH=. nosetests -v -a'!slow'

Make a test run with just nosetests -v -a '!slow'
Make a test run with just nosetests -v -a '!slow'


Former-commit-id: 810cf7503d1b400a51461ae5e541a4002bb3606b [formerly 83766620c946a5862511a4bd9ae969346e788d4d]
Former-commit-id: 28b377c5181d608ee8b108e71a743476225a4973