forked from emsig/empymod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (60 loc) · 2.96 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
language: python
# Note: the `python: X.Y` is not actually used, as internally conda is used,
# which follows the `PYTHON=X.Y` var.
matrix:
include:
- python: 3.6 # Minimum requirements
env: PYTHON=3.6 SP="scipy=1.0" NB="numba=0.44" CONDA="matplotlib" PIP="pytest-mpl scooby" TEST="--mpl"
- python: 3.6
env: PYTHON=3.6 CONDA="matplotlib" PIP="pytest-mpl scooby" TEST="--mpl"
- python: 3.7
env: PYTHON=3.7 DEPLOY_PYPI=true CONDA="matplotlib" PIP="pytest-mpl scooby" TEST="--mpl"
- python: 3.8 # => without matplotlib
env: PYTHON=3.8
- python: 3.7 # => without matplotlib
env: PYTHON=3.7
- python: 3.7 # => just linkcheck
env: PYTHON=3.7 CHCKLNKS=true CONDA="matplotlib pillow" PIP="sphinx numpydoc sphinx_rtd_theme sphinx_numfig sphinx_gallery memory_profiler"
jobs:
allow_failures: # env must be EXACTLY as env allowed to fail.
- env: PYTHON=3.7 CHCKLNKS=true CONDA="matplotlib pillow" PIP="sphinx numpydoc sphinx_rtd_theme sphinx_numfig sphinx_gallery memory_profiler"
install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update --all
# Useful for debugging any issues with conda
- conda info -a
# Install and activate environment, install packages
- conda create -q -n test-environment python=$PYTHON ${SP:-"scipy"} ${NB:-"numba"} $CONDA pytest pytest-cov
- source activate test-environment
- pip install setuptools_scm coveralls pytest-flake8 $PIP
- if [ "$CHCKLNKS" = true ]; then
pip install .;
else
python setup.py install;
fi
- cp tests/matplotlibrc .
script: # No pytest for linkcheck-run.
- if [ "$CHCKLNKS" = true ]; then
cd docs; make html -b linkcheck;
else
pytest --cov=empymod --flake8 $TEST;
fi
after_success:
- if [ "$CHCKLNKS" == "" ]; then coveralls; fi
deploy:
provider: pypi
user: "__token__"
password:
secure: qjFH/07DbwrH2sqGhWAO7y+JV4rgSiRomWmFEyTndt6nmNGuYhpjXIvVRh7/3aozCBLm4qpzflRJF6a+7SlCOkKAjWGM6w4X30nbcmvxBLLvWgL9cbf4gubDYgC1/19+rbLL0u1H8RYbXhXIMDiuNwFZWRqIOpEHt1hwcZBW9FOAt/Xhg8g0peo+I1iUSGAJIO+OC5WdN5L5ms46i5/ELr+UBylaUCFhGyCgnoL1lJFGGDV60eD4HM/4E6Oq0RhaoBh53QSv+eTffs0i+rnKP3tKBKxCnc7Xe+KAJMppAqpQKf3ljwCv+muaCcYKaBRKQXbNx8HjxsFqwgrefVoJ8tLchXAfmIWkVsAeAzvUqZDv44YJT2gdT/A3renLI0YQqalAHy7O+4Pftp5tYzFE3NJZhDUQcy7zEV6esFClKGuPPWedXSBEPcYkLmz2mkJYZK5X6eYGRgA7+j9XNCB8PC52kQIKhwmYX5dSnkwBFBObj+9CnTljNxO8PY2xQ9F7cbWZaGJdMzihUd1EQyUP6oXCkuY84Sn7Q6w24wzuLY7qg4NFtVkEpHI5DzNwys0uKrZAwDgV3pk/HqZIFMvNkzBLjjatborajrVBG0oxi0i4dSdi8nhQEjcp+ObUL04r9MJugFacF6rvSW0vUYytwwnRGXXmMi6oCc4gNL/MLQU=
on:
branch: master
tags: true
condition: '$DEPLOY_PYPI = "true"'
distributions: "sdist bdist_wheel"