sudo: false

language: python

python:
 - "3.5"

jobs:
  include:
  - stage: demos
    script: 
        - bin/run-demos.sh
  - stage: tests
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.engine
        - mkdir ~/oqdata; nosetests --with-doctest -xs -a'!slow' openquake.server
        - bin/oq webui migrate
        - cat /tmp/webui*
    after_success:
        - pip install sphinx==1.3.6 && cd doc/sphinx && make html
  - stage: tests
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.hazardlib 
  - stage: tests
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.risklib
  - stage: tests
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.commonlib
        - nosetests --with-doctest -xs -a'!slow' openquake.commands
  - stage: tests
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.hmtk

install:
  - pip install -r requirements-py35-linux64.txt
  - pip install -e .

before_script:
  - python -c'import platform; print(platform.platform())'

after_script:
  - bin/oq reset --yes

sudo: false

language: python

python:
 - "3.5"

jobs:
  include:
  - stage: tests
    env: ENGINE
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.engine
        - mkdir ~/oqdata; nosetests --with-doctest -xs -a'!slow' openquake.server
        - bin/oq webui migrate
        - cat /tmp/webui*
    after_success:
        - pip install sphinx==1.3.6 && cd doc/sphinx && make html
  - stage: tests
    env: HAZARDLIB
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.hazardlib 
  - stage: tests
    env: RISKLIB
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.risklib
  - stage: tests
    env: COMMON
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.commonlib
        - nosetests --with-doctest -xs -a'!slow' openquake.commands
  - stage: tests
    env: HMTK
    script:
        - nosetests --with-doctest -xs -a'!slow' openquake.hmtk
  - stage: demos
    script: 
        - bin/run-demos.sh

install:
  - pip install -r requirements-py35-linux64.txt
  - pip install -e .

before_script:
  - python -c'import platform; print(platform.platform())'

after_script:
  - bin/oq reset --yes

Set a ENV var to easily identify jobs
Set a ENV var to easily identify jobs


Former-commit-id: 66b5a26f73d3fe490fcead24c4476f5a55a94bf0 [formerly c8a62a3c736ef2f70d1eae32ecc09ee021c8782a]
Former-commit-id: f1df242d8c2e859502c421216ad5ff86aa888fe8