/
.travis.yml
62 lines (54 loc) · 1.48 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
dist: xenial
language: python
sudo: true
branches:
only:
- master
python:
- 3.6
- 3.7
- 3.8
env:
- PYSAL_PYPI=true MPLBACKEND="pdf"
- PYSAL_PYPI=false MPLBACKEND="pdf"
matrix:
allow_failures:
- python: 3.6
env: PYSAL_PYPI=false MPLBACKEND="pdf"
- python: 3.7
env: PYSAL_PYPI=false MPLBACKEND="pdf"
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ./miniconda
- export PATH=`pwd`/miniconda/bin:$PATH
- conda update --yes conda
- conda config --add channels conda-forge
- conda config --set channel_priority strict
- conda create -y -q -n test-env python=$TRAVIS_PYTHON_VERSION
- source activate test-env
install:
- conda install --yes pip
- pip install -r requirements.txt
- pip install -r requirements_tests.txt
- if "$PYSAL_PYPI"; then
echo 'testing pypi libpysal' && pip install libpysal;
else
echo 'testing git libpysal';
git clone https://github.com/pysal/libpysal.git;
cd libpysal; pip install .; cd ../;
fi;
script:
- python setup.py sdist >/dev/null
- python setup.py install
- nosetests --verbose --with-coverage --cover-package=esda;
notifications:
email:
recipients:
- levi.john.wolf+travis@gmail.com
- sjsrey+travis@gmail.com
- weikang9009@gmail.com
on_success: change
on_failure: change
after_success:
- coveralls