Put the whole script in an sh file

This commit is contained in:
Steven Silvester
2014-10-09 22:04:42 -05:00
parent adfe6b3c3e
commit 5f719d19eb
3 changed files with 41 additions and 27 deletions
+2 -18
View File
@@ -21,7 +21,7 @@ before_install:
- export WHEELHOUSE="--no-index --find-links=http://wheels.scikit-image.org/"
- travis_retry sh tools/travis_setup.sh
- ./tools/travis_setup.sh
install:
- tools/header.py "Dependency versions"
@@ -30,23 +30,7 @@ install:
- python setup.py build_ext --inplace
script:
- tools/header.py "Run all tests with minimum dependencies"
- nosetests --exe -v skimage
- tools/header.py "Pep8 and Flake tests"
- flake8 --exit-zero --exclude=test_*,six.py skimage doc/examples viewer_examples
- travis_retry sh tools/travis_get_optional.sh
- tools/header.py "Run doc examples"
- export PYTHONPATH=$(pwd):$PYTHONPATH
- for f in doc/examples/*.py; do python "$f"; if [ $? -ne 0 ]; then exit 1; fi done
- for f in doc/examples/applications/*.py; do python "$f"; if [ $? -ne 0 ]; then exit 1; fi done
- tools/header.py "Run tests with all dependencies"
# run tests again with optional dependencies to get more coverage
# we get TEST_ARGS from travis_setup.sh
- nosetests --exe -v --with-doctest $TEST_ARGS
- ./tools/travis_test.sh
after_success:
- coveralls
+36 -2
View File
@@ -1,5 +1,13 @@
#!/usr/bin/sh
./header.py "Install optional dependencies"
#!/bin/sh
set -ex
tools/header.py "Run all tests with minimum dependencies"
nosetests --exe -v skimage
tools/header.py "Pep8 and Flake tests"
flake8 --exit-zero --exclude=test_*,six.py skimage doc/examples viewer_examples
tools/header.py "Install optional dependencies"
# Install Qt and then update the Matplotlib settings
if [[ $TRAVIS_PYTHON_VERSION == 2.7* ]]; then
@@ -39,3 +47,29 @@ pip install astropy
if [[ $TRAVIS_PYTHON_VERSION == 2.* ]]; then
pip install pyamg
fi
tools/header.py "Run doc examples"
PYTHONPATH=$(pwd):$PYTHONPATH
for f in doc/examples/*.py;
do python "$f";
if [ $? -ne 0 ]; then
exit 1;
fi
done
for f in doc/examples/applications/*.py;
do python "$f";
if [ $? -ne 0 ]; then
exit 1;
fi
done
tools/header.py "Run tests with all dependencies"
# run tests again with optional dependencies to get more coverage
if [[ $TRAVIS_PYTHON_VERSION == 3.3 ]]; then
export TEST_ARGS="--with-cov --cover-package skimage"
else
export TEST_ARGS=""
fi
nosetests --exe -v --with-doctest $TEST_ARGS
+3 -7
View File
@@ -1,4 +1,6 @@
#!/usr/bin/sh
#!/bin/sh
set -ex
pip install wheel flake8 coveralls nose
# on Python 2.7, use the system versions of numpy, scipy, and matplotlib
@@ -11,9 +13,3 @@ fi
pip install -r requirements.txt $WHEELHOUSE
python check_bento_build.py
if [[ $TRAVIS_PYTHON_VERSION == 3.3 ]]; then
export TEST_ARGS="--with-cov --cover-package skimage"
else
export TEST_ARGS=""
fi