forked from krischer/LASIF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (29 loc) · 1.36 KB
/
.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
25
26
27
28
29
30
31
32
33
34
35
language: python
python:
- "2.7"
env:
global:
secure: GStdSQ10ql5pKTEH0HGpZsZjlQnX2CgRAccZ0Pr4aTk7KbaCpZyAJQXdBTSaM1qzZo5QFn5tmIwBXljI4nncdwhAMM5NIKSTZwY+wmpCrLvRI0WrJarfGuK8lwV4NrPWkfCd8qfKx/6MERgrCvCUviXLFZf3YamB5o8icuur7jo=
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes conda
- conda create --yes -n condaenv python=$TRAVIS_PYTHON_VERSION
- conda install --yes -n condaenv pip
- source activate condaenv
- conda install --yes -c obspy obspy nomkl basemap progressbar colorama joblib pytest nose mock pyqt==4.11.4 pyqtgraph pip python=$TRAVIS_PYTHON_VERSION mpi4py sphinx sphinx_rtd_theme numexpr
- pip install geographiclib flask-cache geojson flake8
- pip install --no-deps https://github.com/krischer/wfs_input_generator/archive/master.zip
install:
- pip install .
script:
- cd $TRAVIS_BUILD_DIR; py.test
- cd $TRAVIS_BUILD_DIR/doc; make html
# Upload any potentially produced diffs and produced images to imgur after a test failure.
after_failure:
- wget "https://raw.githubusercontent.com/tremby/imgur.sh/master/imgur.sh"
- "find /tmp/pytest-* -name \"*.png\" | xargs -I % bash imgur.sh %"
after_success:
- bash $TRAVIS_BUILD_DIR/.travis-update-gh-pages.sh