forked from GeoStat-Framework/PyKrige
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.4 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
language: python
sudo: false
matrix:
include:
- python: "3.4"
env: DEPS="numpy scipy nose matplotlib cython"
- python: "2.7"
env: DEPS="numpy=1.9 scipy=0.16 nose matplotlib cython"
# setup adapted from https://github.com/soft-matter/trackpy/blob/master/.travis.yml
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- export PATH=/home/travis/miniconda3/bin:$PATH
# See:
# https://groups.google.com/a/continuum.io/forum/#!topic/conda/RSFENqovnro
- conda update --yes --no-deps conda
# Learned the hard way: miniconda is not always up-to-date with conda.
- conda update --yes conda
install:
- conda install --yes -c conda conda-env
- conda create -n krige-env --yes $DEPS pip python=${TRAVIS_PYTHON_VERSION}
- source activate krige-env
- pip install coveralls
- python setup.py build_ext --inplace
- python setup.py install
- cd ..
# command to run tests
script:
- cd ./PyKrige/pykrige/
- nosetests ./test.py --with-coverage --cover-package=pykrige
# - coverage run --source=hedp ./hedp/tests/run.py
#after_success:
# coveralls