forked from rickli92/EQcorrscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
93 lines (88 loc) · 2.67 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
language: python
os:
- linux
# - osx # Note, travis doesn't support python builds on osx
python:
- "2.7"
# - "3.3"
# - "3.4"
- "3.5"
# virtualenv:
# system_site_packages: true
sudo: false
# Test with multiple obspy versions, allow some backwards compatability
env:
- OBSPY_VERSION=1.0.1
# before install:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pandoc; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS="MacOSX";
export py=$PYTHON_VERSION;
else
export OS="Linux";
export py=$TRAVIS_PYTHON_VERSION;
fi
- if [[ "$py" == "2.7_with_system_site_packages" ]]; then
export py="2.7";
fi
- if [[ "${py:0:1}" == '2' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-${OS}-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-${OS}-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels menpo
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- |
if [[ "${py:0:1}" == '3' ]]; then
env_file="misc/py35_test_env.lis"
PYFLAKES="pyflakes=1.0.0"
else
env_file="misc/py2_test_env.lis"
PYFLAKES="pyflakes=0.9.0"
fi
- conda create -q -n test-environment --file $env_file
- source activate test-environment
- conda install $PYFLAKES
# install packages not available via conda
# - pip install -r requirements.txt
# - |
# if [[ "${py:0:1}" == '3' ]]; then
# OPENCV="-c menpo opencv3=3.1.0"
# else
# OPENCV="opencv"
# fi
- pip install coveralls
- pip install geographiclib
- pip install https://github.com/megies/PyImgur/archive/py3.zip
- pip install pep8-naming
- pip install pytest
- pip install pytest-cov
- pip install obspy==$OBSPY_VERSION
# - pip install obspy==$OBSPY_VERSION
- pip freeze
- conda list
# done installing dependencies
- git version
- pip install .
script:
python setup.py test
after_success:
# Check how much code is actually tested and send this report to coveralls
- coverage combine
- coveralls
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/10122f10ed5043c58ae7
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always