forked from pysal/pysal
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
56 lines (51 loc) · 1.5 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
language: python
sudo: false
branches:
only:
- master
python:
- "2.7"
- "3.4"
- "3.5"
env:
- PYSAL_PLUS=false
- PYSAL_PLUS=true
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda-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 create -y -q -n test-env python=$TRAVIS_PYTHON_VERSION
- source activate test-env
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then 2to3 -nw pysal/ > /dev/null; fi
install:
- conda install --yes pip
- if [ "$PYSAL_PLUS" == true ]; then
echo 'plus testing'; conda install --yes --file requirements_plus.txt;
else conda install --yes --file requirements.txt;
fi;
- pip install -r requirements_dev.txt
script:
- python setup.py sdist >/dev/null
- echo "check_stable=False" >pysal/config.py
- nosetests --with-coverage --cover-package=pysal;
#- cd doc; make pickle; make doctest
notifications:
email:
recipients:
on_success: always
on_failure: always
after_success:
- coveralls