forked from gem/oq-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (19 loc) · 842 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sudo: false
language: python
python:
- "3.5"
addons:
apt:
packages:
- git
install:
- pip install -r requirements-py35-linux64.txt
- python setup.py develop
- if [ "$(git ls-remote --heads https://github.com/gem/oq-hazardlib.git ${TRAVIS_BRANCH})" != "" ]; then BRANCH=$TRAVIS_BRANCH; else BRANCH='master'; fi; git clone -b ${BRANCH} --depth=1 https://github.com/gem/oq-hazardlib.git && echo "Running on oq-hazardlib/${BRANCH}"
# 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=.:$(pwd)/oq-hazardlib nosetests -v -a'!slow'
- cat /tmp/webui*