forked from GeoStat-Framework/PyKrige
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (43 loc) · 1.63 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
language: python
sudo: false
matrix:
include:
- python: "3.6"
env: DEPS="numpy scipy cython nose matplotlib scikit-learn"
- python: "3.5"
env: DEPS="numpy scipy=0.18 cython nose matplotlib scikit-learn=0.18.1"
- python: "2.7"
env: DEPS="numpy=1.10.4 scipy=0.17 cython nose matplotlib scikit-learn=0.17.1"
# setup adapted from https://github.com/soft-matter/trackpy/blob/master/.travis.yml
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
- conda info -a
install:
- conda create -q -n krige-env -y $DEPS pip pytest-cov pytest python=${TRAVIS_PYTHON_VERSION}
- source activate krige-env
- which pip
- pip install coveralls
- pip install -e .
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# command to run tests
script:
- source activate krige-env
- pytest -sv ./pykrige/ --cov=pykrige
- |
# run examples
# scikit-learn needed by the regression kriging example
conda install -y scikit-learn
set -x
for f in examples/*.py; do
python $f 2>&1 | tee -a ~/log.txt
done
if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi
#after_success:
# coveralls