/
.travis.yml
84 lines (77 loc) · 2.69 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
80
81
82
83
84
language: minimal
sudo: false
matrix:
include:
- name: "python-3.6-pypi"
env: PY=3.6 PYSAL_PYPI=true PYSAL_PLUS=false
- name: "python-3.6-pypi-plus"
env: PY=3.6 PYSAL_PYPI=true PYSAL_PLUS=true
- name: "python-3.7-pypi"
env: PY=3.7 PYSAL_PYPI=true PYSAL_PLUS=false
- name: "python-3.7-pypi-plus"
env: PY=3.7 PYSAL_PYPI=true PYSAL_PLUS=true
- name: "tarball-pypi"
env: PY=3.7 PYSAL_PYPI=true PYSAL_PLUS=false
- name: "python-3.6"
env: PY=3.6 PYSAL_PYPI=false PYSAL_PLUS=false
- name: "python-3.6-plus"
env: PY=3.6 PYSAL_PYPI=false PYSAL_PLUS=true
- name: "python-3.7"
env: PY=3.7 PYSAL_PYPI=false PYSAL_PLUS=false
- name: "python-3.7-plus"
env: PY=3.7 PYSAL_PYPI=false PYSAL_PLUS=true
allow_failures:
- name: "python-3.6"
env: PY=3.6 PYSAL_PYPI=false PYSAL_PLUS=false
- name: "python-3.6-plus"
env: PY=3.6 PYSAL_PYPI=false PYSAL_PLUS=true
- name: "python-3.7"
env: PY=3.7 PYSAL_PYPI=false PYSAL_PLUS=false
- name: "python-3.7-plus"
env: PY=3.7 PYSAL_PYPI=false PYSAL_PLUS=true
before_install:
- |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update --quiet conda
conda config --add channels conda-forge --force
conda config --set channel_priority strict
conda config --set safety_checks disabled
conda create --name TEST python=$PY --file requirements.txt --file requirements_dev.txt --file requirements_tests.txt
source activate TEST
conda info --all
install:
- pip install -e . --no-deps --force-reinstall
- if [ "$PYSAL_PYPI" == true ]; then
echo 'testing conda libpysal';
conda install --yes libpysal;
else echo 'testing git libpysal';
git clone https://github.com/pysal/libpysal.git;
cd libpysal;
pip install .;
cd ../;
fi;
- if [ "$PYSAL_PLUS" == true ]; then
echo 'plus testing';
conda install --yes --file requirements_plus.txt;
fi;
script:
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then
travis_wait 45 nosetests --verbose --with-coverage --with-doctest --cover-package=spaghetti;
fi
- if [[ $TRAVIS_JOB_NAME == tarball* ]]; then
pip wheel . -w dist --no-deps;
twine check dist/*;
fi
notifications:
email:
recipients:
- sjsrey+travis@gmail.com
- levi.john.wolf+travis@gmail.com
- jgaboardi+travis@gmail.com
on_success: change
on_failure: change
after_success:
- coveralls