-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
99 lines (92 loc) · 2.71 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
94
95
96
97
98
99
language: c
addons:
apt:
packages:
libfftw3-dev
matrix:
include:
- os: linux
env: PYTHON_VERSION=2.7
# - os: linux
# env: PYTHON_VERSION=3.5
# - os: linux
# env: PYTHON_VERSION=3.4
# # - os: linux
# # env: PYTHON_VERSION=3.3
# # There isn't and openCV3 for python 3.3 on Conda
#
# - os: osx
# env: PYTHON_VERSION=2.7
# - os: osx
# env: PYTHON_VERSION=3.5
sudo: false
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS="MacOSX";
export py=$PYTHON_VERSION;
else
export OS="Linux";
export py=$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 config --add channels obspy
- 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
- echo $PYTHON_VERSION
- conda create -q -n test-environment python=$PYTHON_VERSION numpy scipy matplotlib obspy flake8 mock coverage bottleneck
- source activate test-environment
- conda install $PYFLAKES
- conda install pyproj
- conda install h5py
- pip install coveralls
- pip install geographiclib
- pip install https://github.com/megies/PyImgur/archive/py3.zip
- pip install pep8-naming
- pip install pytest pytest-cov pytest-pep8
- pip install codecov
- pip install Cython
- pip freeze
- conda list
# done installing dependencies
- git version
- python setup.py install
script:
# - travis_wait 50 python setup.py test
# - python setup.py test
- python eqcorrscan/tests/correlate_test.py
after_success:
# Check how much code is actually tested and send this report to codecov
- ls -a
- mv .coverage ../.coverage.empty
- cd ..
- coverage combine
- codecov
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/b964418fdb22a8840c58
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