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