forked from eqcorrscan/EQcorrscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (86 loc) · 2.37 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
language: python
os: linux
python: "2.7"
sudo: false
addons:
apt:
source:
- lucid
packages:
- python-opencv
# before_install:
# - sudo apt-get update
# - sudo apt-get install python-opencv
# - sudo dpkg -L python-opencv
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: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 update -q conda
# Useful for debugging any issues with conda
- conda info -a
- |
if [[ "${py:0:1}" == '3' ]]; then
NUMPY_VERSION=1.9.2
SCIPY_VERSION=0.16.0
MPL_VERSION=1.4.3
BASEMAP_VERSION=1.0.7
else
NUMPY_VERSION=1.8.2
SCIPY_VERSION=0.14.0
MPL_VERSION=1.3.1
BASEMAP_VERSION=1.0.7
fi
- conda create -q -n test-environment
python=$py
numpy=$NUMPY_VERSION
scipy=$SCIPY_VERSION
matplotlib=$MPL_VERSION
basemap=$BASEMAP_VERSION
flake8
future
lxml
sqlalchemy
mock
nose
gdal
pyproj
docopt
coverage
requests
- source activate test-environment
# install packages not available via conda
# - pip install -r requirements.txt
- pip install coveralls
- pip install geographiclib
# current pyimgur stable release has a py2.6 incompatibility
- pip install https://github.com/megies/PyImgur/archive/py26.zip
- pip freeze
- conda list
# done installing dependencies
- git version
- pip install .
script:
# Run the tests available, more should be added
- python eqcorrscan/tests/runtests.py
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/10122f10ed5043c58ae7
on_success: never # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always