forked from mritools/mrrt.nufft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (80 loc) · 2.04 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
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
os: linux
jobs:
include:
- os: linux
python: 3.6
env:
- NUMPYSPEC="numpy==1.14.5"
- SCIPYSPEC="scipy==0.19.0"
- os: linux
python: 3.7
env:
- NUMPYSPEC=numpy
- SCIPYSPEC=scipy
- USE_SDIST=1
- os: linux
python: 3.7
env:
- NUMPYSPEC=numpy
- SCIPYSPEC=scipy
- USE_WHEEL=1
- os: linux
python: 3.8
env:
- NUMPYSPEC=numpy
- SCIPYSPEC=scipy
- os: osx
language: generic
env:
- PYTHON=3.7.6
- NUMPYSPEC=numpy
- SCIPYSPEC=scipy
cache: pip
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install openssl readline
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
fi
which python; python --version
pip install --upgrade pip
pip install --upgrade wheel
pip install $NUMPYSPEC $SCIPYSPEC
pip install pytest pytest-cov coverage codecov
pip install mrrt.utils
script:
# Define a fixed build dir so next step works
- |
if [ "${USE_WHEEL}" == "1" ]; then
# Need verbose output or TravisCI will terminate after 10 minutes
pip wheel . -v
pip install mrrt.nufft*.whl -v
mkdir for_test
pushd for_test
pytest --pyargs mrrt.nufft
popd
elif [ "${USE_SDIST}" == "1" ]; then
python setup.py sdist
# Move out of source directory to avoid finding local pywt
pushd dist
pip install mrrt.nufft* -v
pytest --pyargs mrrt.nufft
popd
else
pip install -e . -v
mkdir for_test
pushd for_test
pytest --pyargs mrrt.nufft --cov=mrrt.nufft --cov-config=../.coveragerc
cp .coverage ..
popd
fi