-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
92 lines (82 loc) · 2.88 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
85
86
87
88
89
90
91
92
os: linux
language: python
python:
- "2.7"
- "3.6"
- "3.7"
- "3.8"
matrix:
include:
- os: osx
osx_image: xcode12.2
language: generic
env: PYTHON=3.8.5
notifications:
email: false
addons:
apt:
packages:
- libfftw3-dev
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- libblas-dev
- gfortran
before_install:
- export URLROOT=https://repo.continuum.io/miniconda/;
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew upgrade;
brew install fftw;
export MCINST=Miniconda3-latest-MacOSX-x86_64.sh;
else
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
export MCINST=Miniconda2-latest-Linux-x86_64.sh;
else
export MCINST=Miniconda3-latest-Linux-x86_64.sh;
fi
fi;
export MCURL=$URLROOT$MCINST;
wget $MCURL -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 -q conda
- conda info -a
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PYTHON_VERSION=3.8.5;
else
export PYTHON_VERSION=$TRAVIS_PYTHON_VERSION;
fi;
conda create --yes -q -n test-env python=$PYTHON_VERSION future numpy scipy pillow matplotlib
- source activate test-env
- conda install -c conda-forge pytest pytest-runner pyfftw mpi4py
- if [[ "$TRAVIS_OS_NAME" != "osx" && "$TRAVIS_PYTHON_VERSION" == "3.8" ]]; then
conda install -c conda-forge codecov;
fi
- python setup.py build
- python setup.py install
script:
- 'echo "backend: Agg" > matplotlibrc'
- if [[ "$TRAVIS_OS_NAME" != "osx" && "$TRAVIS_PYTHON_VERSION" == "3.8" ]]; then
coverage run --source sporco -m py.test;
else
python setup.py test;
fi
- rm -f matplotlibrc
after_success:
- if [[ "$TRAVIS_OS_NAME" != "osx" && "$TRAVIS_PYTHON_VERSION" == "3.8" ]]; then
codecov;
fi
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
user: brendt
password:
secure: O5sLpleEtN2bWsJIASUggQSy9QcLVEbe00Sp/rpxXep0NhoXjVSz0keDjk0XJxlbnb1/l1UXPg+vqSnfUNse8w0guAw+8gvGhhZAymgLqHv940dhuNt7rqlyOExbd2zb7Fu2PAt9dYtLOWEILTeqG2rLRj2TcHhL4m4e8OSN8I5NQ8taE7q11k+LwZj+REhAEE4WtHYXpfyc8BeFPqFXHorE5XoUvCQCIMH9BoGWF8CmAtQ6PeBi5e4IMSer3YEzrWg4IwyjuzwdlRiW/ZHCXCKqlMmlSY3/0bxMIiocBUff5PuDLsIWtn/8eR/CwLBoi1VWzLLq/RsHXp8BGOGvSRNAbCDYmgt7a1+ShmEqpojpLkgLhojl5jJfW9YXykKE+3LsnwlUqTpwrEkaFE/vHlh7EDcssYA7BKKJEeSCWKb46rKNfC2jIUdWEYbY5OMArnciNwhsLM6I1T1C86sAb9ppgzlITJDacLku8HIitMvRu29HBTNe8y9Is6/+T2MAGwUbxqxHKeOKm2/3GZGeojn0K8ZkQgCxbDGvLCVTL4k29tgii3sviM/2BgR58ixf4uLecR8PlPXFiCSCI7IYKQqEvMgO5LmmwgS1um85D9rCvqaF+zOyZLCmWIVA4DoHwsfGjfxe45v0pmt59iPDEcK7nQrou0ndeaMMAV2ksPo=
on:
tags: true
branch: master
condition: $TRAVIS_PYTHON_VERSION = "3.8"