forked from eqcorrscan/RT_EQcorrscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (72 loc) · 2.16 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
language: c
matrix:
include:
- os: linux
env: PYTHON_VERSION=3.7
- os: osx
osx_image: xcode8
env:
- PYTHON_VERSION=3.6
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:0:1}" == '2' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-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
- export OMP_NUM_THREADS=1;
- 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 conda-forge
- conda update -q conda
- conda info -a
- |
if [[ "${py:0:1}" == "3" ]]; then
PYFLAKES="pyflakes=1.0.0"
else
PYFLAKES="pyflakes=0.9.0"
fi
- echo $PYTHON_VERSION
- conda create -q -n test-environment python=$PYTHON_VERSION numpy scipy
- source activate test-environment
- conda install -c conda-forge eqcorrscan bokeh
- pip install pep8-naming pytest pytest-cov pytest-pep8 pytest-xdist pytest-rerunfailures pytest-mpl codecov Cython notifiers
- pip freeze
- conda list
# Install obsplus source which has updates
- eqcorrscan_dir=`pwd`
- cd ..
- git clone https://github.com/niosh-mining/obsplus.git
- cd obsplus
- pip install .
- cd $eqcorrscan_dir
# done installing dependencies
- git version
- python setup.py develop
script:
- export CI="true"
- py.test -n 2 -v
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