Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0d9ca0

Browse files
committed
Run pytest on Travis instead of tests.py.
This should make pep8 checks work again since all of the source directory will be touched. Also, make the test script verbose so it prints out what it's doing (this is part of the recommendations from Travis.)
1 parent 465f604 commit f0d9ca0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/travis/test_script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22

3-
set -e
3+
set -ev
44

55
# This script is meant to be called by the "script" step defined in
66
# .travis.yml. See http://docs.travis-ci.com/ for more details.
@@ -26,9 +26,9 @@ if [[ $BUILD_DOCS == false ]]; then
2626

2727
echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8
2828
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
29-
python tests.py $PYTEST_ARGS $RUN_PEP8
29+
pytest $PYTEST_ARGS $RUN_PEP8
3030
else
31-
gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $PYTEST_ARGS $RUN_PEP8
31+
gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS -m pytest $PYTEST_ARGS $RUN_PEP8
3232
fi
3333
else
3434
cd doc

0 commit comments

Comments
 (0)