Skip to content

Commit

Permalink
Add nose-timer to Travis and AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve committed Dec 4, 2015
1 parent 7b40103 commit 4e29dc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inplace:
$(PYTHON) setup.py build_ext -i

test-code:
$(NOSETESTS) -s nilearn
$(NOSETESTS) -s nilearn --with-timer --timer-top-n 50
test-doc:
$(NOSETESTS) -s --with-doctest --doctest-tests --doctest-extension=rst \
--doctest-extension=inc --doctest-fixtures=_fixture `find doc/ -name '*.rst'`
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install:
- "conda install pip numpy scipy scikit-learn nose wheel matplotlib -y -q"

# Install other nilearn dependencies
- "pip install nibabel coverage"
- "pip install nibabel coverage nose-timer"
- "python setup.py bdist_wheel"
- ps: "ls dist"

Expand All @@ -41,7 +41,7 @@ test_script:
# Change to a non-source folder to make sure we run the tests on the
# installed library.
- "cd C:\\"
- "python -c \"import nose; nose.main()\" -v -s nilearn"
- "python -c \"import nose; nose.main()\" -v -s nilearn --with-timer --timer-top-n 50"

artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
Expand Down
2 changes: 2 additions & 0 deletions continuous_integration/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ create_new_conda_env() {

if [[ "$DISTRIB" == "neurodebian" ]]; then
create_new_venv
pip install nose-timer
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
sudo apt-get install -qq python-scipy python-nose python-nibabel python-sklearn

elif [[ "$DISTRIB" == "conda" ]]; then
create_new_conda_env
pip install nose-timer
# Note: nibabel is in setup.py install_requires so nibabel will
# always be installed eventually. Defining NIBABEL_VERSION is only
# useful if you happen to want a specific nibabel version rather
Expand Down

0 comments on commit 4e29dc8

Please sign in to comment.