Skip to content

CI: Test against minimum versions #2576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ python:
- 3.6

env:
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,fmri,profiler" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit,ssh" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler" PIP_FLAGS="--pre" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,profiler" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,profiler" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,profiler" MIN_DEP=1 CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,profiler,duecredit,ssh" CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,profiler" PIP_FLAGS="--pre" CI_SKIP_TEST=1

addons:
apt:
Expand Down Expand Up @@ -49,7 +50,12 @@ before_install:
- travis_retry conda update -q conda
- conda config --add channels conda-forge
- travis_retry conda install -y python=${TRAVIS_PYTHON_VERSION} icu
- travis_retry pip install -r requirements.txt
- if [ "$MIN_DEP" = "1" ]; then
sed -e 's/>=/==/' < requirements.txt > requirements_min.txt;
travis_retry pip install -r requirements_min.txt;
else
travis_retry pip install -r requirements.txt;
fi;
- travis_retry git clone https://github.com/INCF/pybids.git ${HOME}/pybids &&
pip install -e ${HOME}/pybids
- travis_retry pip install codecov
Expand Down
6 changes: 5 additions & 1 deletion nipype/pipeline/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ def _clean_queue(self, jobid, graph, result=None):
self._status_callback(self.procs[jobid], 'exception')

if str2bool(self._config['execution']['stop_on_first_crash']):
raise RuntimeError("".join(result['traceback']))
if result is None:
tb = '\n'.join(format_exception(*sys.exc_info()))
else:
tb = result['traceback']
raise RuntimeError("".join(tb))
crashfile = self._report_crash(self.procs[jobid], result=result)
if jobid in self.mapnodesubids:
# remove current jobid
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy>=1.9.0
scipy>=0.14
numpy>=1.9.3
scipy>=0.19.1
networkx>=1.9
traits>=4.6
python-dateutil>=2.2
Expand Down