@@ -61,15 +61,28 @@ jobs:
61
61
- python : 3.7
62
62
env :
63
63
- EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
64
+ # OSX Python support is basically accidental. Take whatever version we can
65
+ # get and test with full dependencies...
66
+ - os : osx
67
+ language : minimal
68
+ # and pre-releases. No min-requirements.txt because we can't assume a wheel that old.
69
+ - os : osx
70
+ language : minimal
71
+ env :
72
+ - EXTRA_PIP_FLAGS="$PRE_PIP_FLAGS"
73
+ # Test that PyPI installs from source pass
64
74
- python : 3.5
65
75
env :
66
76
- INSTALL_TYPE=sdist
77
+ # Wheels (binary distributions)
67
78
- python : 3.5
68
79
env :
69
80
- INSTALL_TYPE=wheel
81
+ # Install from git archive (e.g., https://github.com/nipy/nibabel/archive/master.zip)
70
82
- python : 3.5
71
83
env :
72
84
- INSTALL_TYPE=archive
85
+ # Run flake8... Might not be needed now we have pep8speaks
73
86
- python : 3.5
74
87
env :
75
88
- CHECK_TYPE="style"
@@ -80,42 +93,42 @@ jobs:
80
93
81
94
# Set up virtual environment, build package, build from depends
82
95
before_install :
83
- - travis_retry python -m pip install --upgrade pip virtualenv
84
- - virtualenv --python=python venv
96
+ - travis_retry python3 -m pip install --upgrade pip virtualenv
97
+ - virtualenv --python=python3 venv
85
98
- source venv/bin/activate
86
- - python --version # just to check
87
- - travis_retry pip install -U $SETUP_REQUIRES
99
+ - python3 --version # just to check
100
+ - travis_retry python3 -m pip install -U $SETUP_REQUIRES
88
101
- |
89
102
if [ "$INSTALL_TYPE" == "sdist" ]; then
90
- python setup.py egg_info # check egg_info while we're here
91
- python setup.py sdist
103
+ python3 setup.py egg_info # check egg_info while we're here
104
+ python3 setup.py sdist
92
105
export ARCHIVE=$( ls dist/*.tar.gz )
93
106
elif [ "$INSTALL_TYPE" == "wheel" ]; then
94
- python setup.py bdist_wheel
107
+ python3 setup.py bdist_wheel
95
108
export ARCHIVE=$( ls dist/*.whl )
96
109
elif [ "$INSTALL_TYPE" == "archive" ]; then
97
110
export ARCHIVE="package.tar.gz"
98
111
git archive -o $ARCHIVE HEAD
99
112
fi
100
- - if [ -n "$DEPENDS" ]; then pip install $EXTRA_PIP_FLAGS $DEPENDS; fi
113
+ - if [ -n "$DEPENDS" ]; then python3 -m pip install $EXTRA_PIP_FLAGS $DEPENDS; fi
101
114
102
115
# command to install dependencies
103
116
install :
104
117
- |
105
118
if [ "$INSTALL_TYPE" == "setup" ]; then
106
- python setup.py install
119
+ python3 setup.py install
107
120
else
108
- pip install $EXTRA_PIP_FLAGS $ARCHIVE
121
+ python3 -m pip install $EXTRA_PIP_FLAGS $ARCHIVE
109
122
fi
110
123
# Basic import check
111
- - python -c 'import nibabel; print(nibabel.__version__)'
124
+ - python3 -c 'import nibabel; print(nibabel.__version__)'
112
125
- if [ "$CHECK_TYPE" == "skiptests" ]; then exit 0; fi
113
126
114
127
before_script :
115
128
# Point to nibabel data directory
116
129
- export NIBABEL_DATA_DIR="$PWD/nibabel-data"
117
130
# Because nibabel is already installed, will just look up the extra
118
- - pip install $EXTRA_PIP_FLAGS "nibabel[$CHECK_TYPE]"
131
+ - python3 -m pip install $EXTRA_PIP_FLAGS "nibabel[$CHECK_TYPE]"
119
132
120
133
# command to run tests, e.g. python setup.py test
121
134
script :
@@ -155,7 +168,7 @@ script:
155
168
fi
156
169
157
170
after_script :
158
- - travis_retry pip install codecov
171
+ - travis_retry python3 -m pip install codecov
159
172
- codecov
160
173
161
174
notifications :
0 commit comments